From f6ae03925a9156aef19ce29841faa42fb555fe6f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gr=C3=A9goire=20Kubler?= <gregoire.kubler@proton.me>
Date: Mon, 10 Jun 2024 17:28:50 +0200
Subject: [PATCH] chore : cleanup useless option in setup.py

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

diff --git a/setup.py b/setup.py
index af692733..11162c88 100644
--- a/setup.py
+++ b/setup.py
@@ -46,11 +46,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
-        print(f"python executable :\t{python_executable}")
-
         compile_type = (
             "Release"
             if "AIDGE_PYTHON_BUILD_TYPE" not in os.environ
@@ -66,7 +61,6 @@ class CMakeBuild(build_ext):
             [
                 "cmake",
                 str(cwd),
-                f"-DPYTHON_EXECUTABLE={python_executable}",
                 "-DTEST=OFF",
                 f"-DCMAKE_INSTALL_PREFIX:PATH={install_path}",
                 f"-DCMAKE_BUILD_TYPE={compile_type}",
-- 
GitLab