From 5523e5b3ecc11b935e46e3e108c7cb3d2fa1f9bd Mon Sep 17 00:00:00 2001 From: Mate Soos Date: Sat, 14 Oct 2023 17:21:25 +0200 Subject: [PATCH] Updating for windows build --- setup.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 7380445..7fb1648 100644 --- a/setup.py +++ b/setup.py @@ -49,9 +49,12 @@ def _parse_toml(pyproject_path): def gen_modules(version): if platform == "win32" or platform == "cygwin": - extra_compile_args_val = ['/std:c++17'] + extra_compile_args_val = ['/std:c++17', "/DCMS_LOCAL_BUILD=1", "/DAPPMC_FULL_VERSION=\"\\\""+version+"\"\\\""] + define_macros_val = [("TRACE", "")] + else: extra_compile_args_val = ['-std=c++17'] + define_macros_val = [('CMS_LOCAL_BUILD', 1),("TRACE", ""),("APPMC_FULL_VERSION", "\""+version+"\"")] modules = Extension( name = "pyapproxmc", @@ -109,7 +112,7 @@ def gen_modules(version): "python/arjun/src/simplify.cpp", ], extra_compile_args = extra_compile_args_val, - define_macros = [('CMS_LOCAL_BUILD', 1),("TRACE", ""),("APPMC_FULL_VERSION", "\""+version+"\"")], + define_macros = define_macros_val, include_dirs = ["src/", "python/cryptominisat/src/", "python/arjun/src/"], language = "c++", )