diff --git a/setup.py b/setup.py index 7f42131b3c5a63c0042364acbd4d101745699d00..86577aa2c2b5199eb3e248030e6f2c7436c170e8 100644 --- a/setup.py +++ b/setup.py @@ -50,16 +50,11 @@ class CMakeBuild(build_ext): os.chdir(str(build_temp)) - # Impose to use the executable of the python - # used to launch setup.py to setup PythonInterp - - # see issue https://gitlab.eclipse.org/eclipse/aidge/aidge_backend_cuda/-/issues/18 - compile_type = "Debug" - # compile_type = ( - # "Release" - # if "AIDGE_PYTHON_BUILD_TYPE" not in os.environ - # else os.environ["AIDGE_PYTHON_BUILD_TYPE"] - # ) + compile_type = ( + "Release" + if "AIDGE_PYTHON_BUILD_TYPE" not in os.environ + else os.environ["AIDGE_PYTHON_BUILD_TYPE"] + ) install_path = ( os.path.join(sys.prefix, "lib", "libAidge")