From a2220f1d498f5b2547a5e5d2e9e0a07399b36f5a Mon Sep 17 00:00:00 2001 From: Tom Schoonjans Date: Thu, 10 Sep 2020 10:12:32 +0100 Subject: [PATCH] Do not set compiler to mingw32 on Windows With this patch, msvc is used, which is the default for building Python extensions on Windows. Currently, one must force usage of msvc when building bdist_wheel and installing with something like: %PYTHON% -m pip install . -vv --global-option build --global-option --compiler=msvc --global-option build --global-option --cythonize This kind of command will no longer work in the next major release of pip: https://github.com/pypa/pip/issues/8368 --- setuptools_cythonize.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/setuptools_cythonize.py b/setuptools_cythonize.py index a921736..b97c919 100644 --- a/setuptools_cythonize.py +++ b/setuptools_cythonize.py @@ -55,10 +55,6 @@ def initialize_options(self): def finalize_options(self): build.finalize_options(self) - if not self.compiler and platform.system() == 'Windows': - log.warn("No compiler provided, set it to mingw32 as default") - self.compiler = 'mingw32' - class CythonizeBuildPy(build_py):