From 17ad7a0814ebe31268b99b404551eceb0f8fdbd3 Mon Sep 17 00:00:00 2001 From: Avishai Weissberg Date: Mon, 4 Nov 2024 18:51:14 -0800 Subject: [PATCH] chore: fix windows build setuptools broken compat, see https://github.com/pypa/setuptools/pull/4600 --- setup/c_ext.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup/c_ext.py b/setup/c_ext.py index 9cccc04..4deb8d6 100644 --- a/setup/c_ext.py +++ b/setup/c_ext.py @@ -348,9 +348,9 @@ def _compile_obj(obj): if sys.platform == "win32": - import distutils.msvccompiler + import distutils._msvccompiler import distutils.msvc9compiler - distutils.msvccompiler.MSVCCompiler.compile = windows_parallel_ccompile + distutils._msvccompiler.MSVCCompiler.compile = windows_parallel_ccompile distutils.msvc9compiler.MSVCCompiler.compile = windows_parallel_ccompile else: distutils.ccompiler.CCompiler.compile = gcc_parallel_ccompile