4d6f366a7b
- installing python bindings globally - adding patch to determine python site packages dir correctly
17 lines
593 B
Diff
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
|