This repository has been archived on 2019-08-07. You can view files and clone it, but cannot push or open issues or pull requests.
copr-dani-qgis/python-site-packages-dir-0.9.1.patch
Douglas E. Warner 4d6f366a7b - defining lib path in build
- installing python bindings globally
- adding patch to determine python site packages dir correctly
2008-01-29 18:17:39 +00:00

17 lines
593 B
Diff

diff -ruN qgis-0.9.1-orig/python/CMakeLists.txt qgis-0.9.1/python/CMakeLists.txt
--- qgis-0.9.1-orig/python/CMakeLists.txt 2007-12-07 08:09:52.000000000 -0500
+++ qgis-0.9.1/python/CMakeLists.txt 2008-01-29 09:21:36.000000000 -0500
@@ -76,11 +76,7 @@
# python's site-packages dir: bindings will be installed here
IF (UNIX)
- SET (CMD "
-import sys
-v = sys.version_info
-print sys.exec_prefix + '/lib/python' + str(v[0]) + '.' + str(v[1]) + '/site-packages'
-")
+ SET (CMD "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")
ELSE (UNIX)
SET (CMD "
import sys