Skip to content

Commit

Permalink
Fix CI on Mac (#224)
Browse files Browse the repository at this point in the history
* maybe mac needs distutils installed

* try not using sysutils to get the python path

credit ChatGPT
  • Loading branch information
william-dawson authored Nov 15, 2023
1 parent 3a44cbf commit 37426fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Swig/ConfigPython.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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()

0 comments on commit 37426fb

Please sign in to comment.