From 330ac0194c83374ca8f80565f36d6e69575b6704 Mon Sep 17 00:00:00 2001 From: MariusCausemann Date: Fri, 3 Jan 2025 12:54:59 +0100 Subject: [PATCH] debug from sys.argv --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 4cb4fd8..f7c91d4 100644 --- a/setup.py +++ b/setup.py @@ -42,7 +42,7 @@ def build_extension(self, ext): '-DPYTHON_EXECUTABLE=' + sys.executable, ] - cfg = 'Debug' if self.debug else 'Release' + cfg = 'Debug' if "debug" in sys.argv else 'Release' build_args = ['--config', cfg] cmake_args += ['-DCMAKE_BUILD_TYPE=' + cfg]