Skip to content

Commit 01ef22e

Browse files
committed
Revert "[cmake] do not use distutils in cmake scripts"
This reverts commit a6e02d6. This is currently broken, revert until it's fixed.
1 parent 448671a commit 01ef22e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmake/scripts/linux/Install.cmake

+1-1
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ install(FILES ${CMAKE_BINARY_DIR}/${CORE_BUILD_DIR}/scripts/${APP_NAME}Config.cm
201201

202202
if(ENABLE_EVENTCLIENTS)
203203
find_package(PythonInterpreter REQUIRED)
204-
execute_process(COMMAND ${PYTHON_EXECUTABLE} -c "from sysconfig import get_path; print(get_path('platlib', scheme='posix_prefix'))"
204+
execute_process(COMMAND ${PYTHON_EXECUTABLE} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(prefix=''))"
205205
OUTPUT_VARIABLE PYTHON_LIB_PATH OUTPUT_STRIP_TRAILING_WHITESPACE)
206206
# Install kodi-eventclients-common BT python files
207207
install(PROGRAMS ${CMAKE_SOURCE_DIR}/tools/EventClients/lib/python/bt/__init__.py

0 commit comments

Comments
 (0)