From 37426fb386ef9893d83191c3daafcbed4cee4d10 Mon Sep 17 00:00:00 2001 From: william-dawson Date: Wed, 15 Nov 2023 13:49:18 +0900 Subject: [PATCH] Fix CI on Mac (#224) * maybe mac needs distutils installed * try not using sysutils to get the python path credit ChatGPT --- Source/Swig/ConfigPython.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Swig/ConfigPython.cmake b/Source/Swig/ConfigPython.cmake index d41ae4ca..f243c8d5 100644 --- a/Source/Swig/ConfigPython.cmake +++ b/Source/Swig/ConfigPython.cmake @@ -3,6 +3,6 @@ macro(get_py_include) execute_process( COMMAND ${PYTHON_EXECUTABLE} -c - "from distutils.sysconfig import get_python_inc; print(get_python_inc())" + "import sysconfig; print(sysconfig.get_path('include'))" OUTPUT_VARIABLE PYTHON_INCLUDE_PATH OUTPUT_STRIP_TRAILING_WHITESPACE) endmacro()