From 0a6c40d317a3af1eeb481d3a915fc34ee1d33d8e Mon Sep 17 00:00:00 2001 From: Ishkhan Nazaryan <105867377+ishkhan42@users.noreply.github.com> Date: Thu, 8 Jun 2023 14:40:58 +0000 Subject: [PATCH] Fix: MSVC by default makes Debug build. Debug build on windows requires python debug libraries, which by default are not installed. --- setup.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/setup.py b/setup.py index 68605cc..7026067 100644 --- a/setup.py +++ b/setup.py @@ -58,6 +58,9 @@ def build_extension(self, ext): # Set CMAKE_BUILD_PARALLEL_LEVEL to control the parallel build level # across all generators. build_args = [] + if sys.platform.startswith('win32'): + build_args += ['--config', 'Release'] + if 'CMAKE_BUILD_PARALLEL_LEVEL' not in os.environ: # self.parallel is a Python 3 only way to set parallel jobs by hand # using -j in the build_ext call, not supported by pip or PyPA-build.