Changeset View
Changeset View
Standalone View
Standalone View
files/python-site-packages.patch
- This file was added.
| --- a/cmake/macros/Private.cmake | |||||
| +++ b/cmake/macros/Private.cmake | |||||
| @@ -118,7 +118,7 @@ function(_install_python LIBRARY_NAME) | |||||
| ${ARGN} | |||||
| ) | |||||
| - set(libPythonPrefix lib/python) | |||||
| + set(libPythonPrefix lib/python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}/site-packages) | |||||
| _get_python_module_name(${LIBRARY_NAME} LIBRARY_INSTALLNAME) | |||||
| set(files_copied "") | |||||
| @@ -285,7 +285,7 @@ function(_install_pyside_ui_files LIBRAR | |||||
| FOLDER "${folder}" | |||||
| ) | |||||
| - set(libPythonPrefix lib/python) | |||||
| + set(libPythonPrefix lib/python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}/site-packages) | |||||
| _get_python_module_name(${LIBRARY_NAME} LIBRARY_INSTALLNAME) | |||||
| install( | |||||
| @@ -940,7 +940,7 @@ function(_pxr_python_module NAME) | |||||
| # 'from pxr import X'. Additionally, python libraries always install | |||||
| # into the default lib install, not into the third_party subdirectory | |||||
| # or similar. | |||||
| - set(libInstallPrefix "lib/python/pxr/${pyModuleName}") | |||||
| + set(libInstallPrefix "lib/python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}/site-packages/pxr/${pyModuleName}") | |||||
| # Python modules need to be able to access their corresponding | |||||
| # wrapped library and the install lib directory. | |||||
Copyright © 2015-2021 Solus Project. The Solus logo is Copyright © 2016-2021 Solus Project. All Rights Reserved.