Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Backports:SLE-15-SP4:RebuildFactoryUpdates
ogre
python3-sitelib.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File python3-sitelib.patch of Package ogre
diff -Nur ogre-1.12.12/Components/Python/CMakeLists.txt new/Components/Python/CMakeLists.txt --- ogre-1.12.12/Components/Python/CMakeLists.txt 2021-04-18 01:55:39.000000000 +0200 +++ new/Components/Python/CMakeLists.txt 2021-05-04 00:07:29.747383101 +0200 @@ -8,7 +8,19 @@ include_directories("${PROJECT_BINARY_DIR}/include" "${PROJECT_SOURCE_DIR}/OgreMain/include") include(${SWIG_USE_FILE}) -set(PYTHON_SITE_PACKAGES lib/python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}/dist-packages/Ogre/) +execute_process( + COMMAND python3 -c "import sysconfig; print(sysconfig.get_paths()[\"purelib\"], end=\"\")" + OUTPUT_VARIABLE PY_PATH + ERROR_VARIABLE ERR_ + RESULT_VARIABLE RES_ +) +if(RES_ EQUAL 0) + message("Detected python site-lib path: ${PY_PATH}") + set(PYTHON_SITE_PACKAGES "${PY_PATH}/Ogre/") +else() + message("Error detecting site-lib path: ${ERR_}") + set(PYTHON_SITE_PACKAGES lib/python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}/dist-packages/Ogre/) +endif() if(SKBUILD) set(PYTHON_SITE_PACKAGES Ogre/)
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor