From 62e0ffb0bda42cfba12cd162ffc52b044f8fd201 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gr=C3=A9goire=20KUBLER?= <gregoire.kubler@proton.me>
Date: Tue, 30 Jul 2024 10:12:41 +0200
Subject: [PATCH] fix : re enabled pip release build option

---
 setup.py | 15 +++++----------
 1 file changed, 5 insertions(+), 10 deletions(-)

diff --git a/setup.py b/setup.py
index 7f42131..86577aa 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")
-- 
GitLab