Skip to content
Snippets Groups Projects
Commit e6541e0b authored by Grégoire Kubler's avatar Grégoire Kubler Committed by Maxence Naud
Browse files

feat : AIDGE_PYTHON_BUILD_TYPE

parent a0546cfc
No related branches found
No related tags found
1 merge request!18v0.1.3
...@@ -42,22 +42,18 @@ class CMakeBuild(build_ext): ...@@ -42,22 +42,18 @@ class CMakeBuild(build_ext):
os.chdir(str(build_temp)) os.chdir(str(build_temp))
python_executable = sys.executable # Impose to use the executable of the python
python_include_dirs = sysconfig.get_path('include') # used to launch setup.py to setup PythonInterp
python_library = sysconfig.get_config_var('LIBDIR') python_executable = sys.executable
python_prefix = sys.exec_prefix print(f"python executable :\t{python_executable}")
print(f"python\texecutable\t{python_executable}") compile_type = (
print(f"\t\t\tinclude\tdirs {python_include_dirs}") "Release"
print(f"-DPYTHON_INCLUDE_DIRS={sysconfig.get_config_var('INCLUDEPY')}") if "AIDGE_PYTHON_BUILD_TYPE" not in os.environ
print(f"\t\t\tlibrary\t{python_library}") else os.environ["AIDGE_PYTHON_BUILD_TYPE"]
print(f"-DPYTHON_LIBRARIES={sysconfig.get_config_var('LIBDEST')}") )
print(f"\t\t\tprefix\t{python_prefix}")
# Impose to use the executable of the python # Impose to use the executable of the python
# used to launch setup.py to setup PythonInterp # used to launch setup.py to setup PythonInterp
python_executable = sys.executable
print(f"python executable :\t{python_executable}")
compile_type = "Debug"
install_path = ( install_path = (
os.path.join(sys.prefix, "lib", "libAidge") os.path.join(sys.prefix, "lib", "libAidge")
if "AIDGE_INSTALL" not in os.environ if "AIDGE_INSTALL" not in os.environ
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment