Skip to content

Commit

Permalink
use python3 sysconfig module for path detection instead of deprecated…
Browse files Browse the repository at this point in the history
… distutils
  • Loading branch information
arahlin committed Jan 15, 2022
1 parent 81e1410 commit a64249c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ endif(${USE_PROJECT_LIST} AND WILL_BUILD_CORE EQUAL -1)
# If not set by the user, ask python where it keeps modules
if(NOT PYTHON_MODULE_DIR)
EXECUTE_PROCESS (COMMAND ${Python_EXECUTABLE} -c
"from distutils.sysconfig import get_python_lib; print(get_python_lib(plat_specific=True,standard_lib=False))"
"import sysconfig; print(sysconfig.get_path(\"platlib\"))"
OUTPUT_VARIABLE PYTHON_MODULE_DIR
OUTPUT_STRIP_TRAILING_WHITESPACE
)
Expand Down

0 comments on commit a64249c

Please sign in to comment.