Fix build error about binding python 2.7 path 50/302950/1 accepted/tizen_9.0_unified accepted/tizen_unified accepted/tizen_unified_dev accepted/tizen_unified_riscv tizen_9.0 accepted/tizen/9.0/unified/20241030.231856 accepted/tizen/unified/20231220.165117 accepted/tizen/unified/dev/20240620.010849 accepted/tizen/unified/riscv/20231226.211138 tizen_9.0_m2_release
authorJinWang An <jinwang.an@samsung.com>
Mon, 18 Dec 2023 04:55:05 +0000 (13:55 +0900)
committerJinWang An <jinwang.an@samsung.com>
Mon, 18 Dec 2023 04:55:24 +0000 (13:55 +0900)
Change-Id: I395963ad891a7f38ee8bc039197b0fc63360a34d
Signed-off-by: JinWang An <jinwang.an@samsung.com>
bindings/python/CMakeLists.txt

index 186be41..64ef528 100644 (file)
@@ -13,7 +13,7 @@ ELSE()
 ENDIF()
 FIND_PACKAGE (PythonInterp ${python_version} REQUIRED)
 
-EXECUTE_PROCESS(COMMAND ${PYTHON_EXECUTABLE} -c "from sys import stdout; import sysconfig; stdout.write(sysconfig.get_path('platlib'))" OUTPUT_VARIABLE PYTHON_INSTALL_DIR)
+EXECUTE_PROCESS(COMMAND ${PYTHON_EXECUTABLE} -c "from sys import stdout; from distutils import sysconfig; stdout.write(sysconfig.get_python_lib(True))" OUTPUT_VARIABLE PYTHON_INSTALL_DIR)
 
 IF (NOT DEFINED PYTHON_VERSION_MAJOR)
     SET (PYTHON_VERSION_MAJOR 2)