From ea1dc39f3b9be7fb2f4923638712d4557a4252e6 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gr=C3=A9goire=20Kubler?= <gregoire.kubler@proton.me>
Date: Fri, 10 May 2024 17:49:02 +0200
Subject: [PATCH] chore : removed useless variables

---
 setup.py | 14 --------------
 1 file changed, 14 deletions(-)

diff --git a/setup.py b/setup.py
index 1ed3b124a..09f769673 100644
--- a/setup.py
+++ b/setup.py
@@ -43,17 +43,6 @@ 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
-        python_executable = sys.executable
-        python_include_dirs = sysconfig.get_path('include')  
-        python_library = sysconfig.get_config_var('LIBDIR')
-        python_prefix = sys.exec_prefix
-        print(f"python executable {python_executable}")
-        print(f"python include dirs {python_include_dirs}")
-        print(f"python library {python_library}")
-        print(f"python prefix {python_prefix}")
-
         compile_type = "Debug"
         install_path = (
             os.path.join(sys.prefix, "lib", "libAidge")
@@ -64,9 +53,6 @@ class CMakeBuild(build_ext):
             [
                 "cmake",
                 str(cwd),
-                f"-DPYTHON_EXECUTABLE={python_executable}",
-                f"-DPYTHON_INCLUDE_DIR={python_include_dirs}",
-                f"-DPYTHON_LIBRARY={python_library}",
                 "-DTEST=OFF",
                 f"-DCMAKE_INSTALL_PREFIX:PATH={install_path}",
                 f"-DCMAKE_BUILD_TYPE={compile_type}",
-- 
GitLab