diff options
author | JinWang An <jinwang.an@samsung.com> | 2023-12-18 13:55:05 +0900 |
---|---|---|
committer | JinWang An <jinwang.an@samsung.com> | 2023-12-18 13:55:24 +0900 |
commit | d7f392b2f466c04078ccda3c9871b18edc0cdd86 (patch) | |
tree | 1c4ce041a4e58833179e3b3bb3e3f96ad209cd15 /bindings | |
parent | 1a295166698c649fdee7c69a63c46730e6229f8b (diff) | |
download | libsolv-d7f392b2f466c04078ccda3c9871b18edc0cdd86.tar.gz libsolv-d7f392b2f466c04078ccda3c9871b18edc0cdd86.tar.bz2 libsolv-d7f392b2f466c04078ccda3c9871b18edc0cdd86.zip |
Fix build error about binding python 2.7 pathtizen_9.0_m2_releaseaccepted/tizen/unified/riscv/20231226.211138accepted/tizen/unified/dev/20240620.010849accepted/tizen/unified/20231220.165117accepted/tizen/9.0/unified/20241030.231856tizen_9.0accepted/tizen_unified_riscvaccepted/tizen_unified_devaccepted/tizen_unifiedaccepted/tizen_9.0_unified
Change-Id: I395963ad891a7f38ee8bc039197b0fc63360a34d
Signed-off-by: JinWang An <jinwang.an@samsung.com>
Diffstat (limited to 'bindings')
-rw-r--r-- | bindings/python/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bindings/python/CMakeLists.txt b/bindings/python/CMakeLists.txt index 186be41..64ef528 100644 --- a/bindings/python/CMakeLists.txt +++ b/bindings/python/CMakeLists.txt @@ -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) |