Applied Ticket #1049: python-site-packages-dir-0.9.1.patch

git-svn-id: http://svn.osgeo.org/qgis/trunk@8749 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
timlinux 2008-07-10 09:11:50 +00:00
parent ee275abfb5
commit e7d62a2190

View File

@ -79,11 +79,7 @@ IF (BINDINGS_GLOBAL_INSTALL)
# 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