Skip to content

Commit

Permalink
try not using sysutils to get the python path
Browse files Browse the repository at this point in the history
credit ChatGPT
  • Loading branch information
william-dawson committed Nov 15, 2023
1 parent 753fe4e commit 9e5d945
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
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()
1 change: 0 additions & 1 deletion UnitTests/before_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,4 @@ elif [[ "$TESTOS" == "OSX" ]]; then
sudo pip3 install flake8 --upgrade --no-cache-dir
sudo pip3 install pyyaml --upgrade --no-cache-dir
sudo pip3 install ford --upgrade --no-cache-dir
sudo pip3 install distutils --upgrade --no-cache-dir
fi

0 comments on commit 9e5d945

Please sign in to comment.