diff --git a/setup.py b/setup.py index cc3d5dbb810c74f5d8c88bd9258c139fa9a30861..0b0f66e9132d66cdb6385d7f8c6c69ae0cc5d0e3 100644 --- a/setup.py +++ b/setup.py @@ -65,9 +65,10 @@ class CMakeBuild(build_ext): # Impose to use the executable of the python # used to launch setup.py to setup PythonInterp param_py = "-DPYTHON_EXECUTABLE=" + sys.executable - - self.spawn(['cmake', str(cwd), param_py, '-DTEST=OFF', f'-DCMAKE_INSTALL_PREFIX:PATH={build_temp}/install']) + install_path = f"{build_temp}/install" if "AIDGE_INSTALL" not in os.environ else os.environ["AIDGE_INSTALL"] + + self.spawn(['cmake', str(cwd), param_py, '-DTEST=OFF', f'-DCMAKE_INSTALL_PREFIX:PATH={install_path}']) if not self.dry_run: self.spawn(['make', 'all', 'install', '-j', max_jobs]) os.chdir(str(cwd))