From 23476683f674170fb2f6942f5d31a3ebc3744381 Mon Sep 17 00:00:00 2001 From: Marek Roszko Date: Sat, 1 Apr 2023 13:42:41 -0400 Subject: [PATCH] Try and patch site patch detection Use Steven Falco's suggested fix from fedora, it appears to behave fine on Windows --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 533268b7d0..d72b73df7a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -848,7 +848,7 @@ check_find_package_result( PYTHONINTERP_FOUND "Python Interpreter" ) # Get the correct Python site package install path from the Python interpreter found by # FindPythonInterp unless the user specifically defined a custom path. if( NOT PYTHON_SITE_PACKAGE_PATH ) - execute_process( COMMAND ${PYTHON_EXECUTABLE} -c "import sysconfig;print(\"%s\"%sysconfig.get_path('purelib'))" + execute_process( COMMAND ${PYTHON_EXECUTABLE} -c "import sysconfig;print(\"%s\"%sysconfig.get_path('platlib', vars={'platbase': '.'}))" OUTPUT_VARIABLE PYTHON_SITE_PACKAGE_PATH OUTPUT_STRIP_TRAILING_WHITESPACE )