mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-26 18:21:59 +00:00
suggested change of ifcwrap pythoninterpreter function to no longer rely on distutil (which is deprecated in python 3.12).
This commit is contained in:
@@ -78,7 +78,7 @@ IF((PYTHONINTERP_FOUND AND NOT "${PYTHON_EXECUTABLE}" STREQUAL "") OR PYTHON_MOD
|
|||||||
)
|
)
|
||||||
ELSE ()
|
ELSE ()
|
||||||
EXECUTE_PROCESS(
|
EXECUTE_PROCESS(
|
||||||
COMMAND ${PYTHON_EXECUTABLE} -c "import sys; from distutils.sysconfig import get_python_lib; sys.stdout.write(get_python_lib(1))"
|
COMMAND ${PYTHON_EXECUTABLE} -c "import sys; import sysconfig; sys.stdout.write(sysconfig.get_path('platlib'))"
|
||||||
OUTPUT_VARIABLE python_package_dir
|
OUTPUT_VARIABLE python_package_dir
|
||||||
)
|
)
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
|||||||
Reference in New Issue
Block a user