MINGW-packages/mingw-w64-avogadrolibs/003-fix-install-python-modules.patch
مهدي شينون (Mehdi Chinoune) 459ad17af8 [new-package] avogadrolibs 1.99.0
2024-05-30 16:46:43 +01:00

12 lines
400 B
Diff

--- a/python/CMakeLists.txt
+++ b/python/CMakeLists.txt
@@ -17,7 +17,7 @@
set(_python_module_install_dir "avogadro")
# SKBUILD is set for binary wheel
if (NOT SKBUILD)
- set(_python_module_install_dir "${Python_SITEARCH}/avogadro")
+ set(_python_module_install_dir "lib/python${Python_VERSION_MAJOR}.${Python_VERSION_MINOR}/site-packages/avogadro")
endif()
set(CMAKE_MODULE_LINKER_FLAGS "")