[QGIS Commit] r8749 - trunk/qgis/python

svn_qgis at osgeo.org svn_qgis at osgeo.org
Thu Jul 10 05:11:50 EDT 2008


Author: timlinux
Date: 2008-07-10 05:11:50 -0400 (Thu, 10 Jul 2008)
New Revision: 8749

Modified:
   trunk/qgis/python/CMakeLists.txt
Log:
Applied Ticket #1049: python-site-packages-dir-0.9.1.patch


Modified: trunk/qgis/python/CMakeLists.txt
===================================================================
--- trunk/qgis/python/CMakeLists.txt	2008-07-10 09:01:33 UTC (rev 8748)
+++ trunk/qgis/python/CMakeLists.txt	2008-07-10 09:11:50 UTC (rev 8749)
@@ -79,11 +79,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



More information about the QGIS-commit mailing list