Skip to content

Commit e7d62a2

Browse files
author
timlinux
committed
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
1 parent ee275ab commit e7d62a2

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

python/CMakeLists.txt

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,7 @@ IF (BINDINGS_GLOBAL_INSTALL)
7979

8080
# python's site-packages dir: bindings will be installed here
8181
IF (UNIX)
82-
SET (CMD "
83-
import sys
84-
v = sys.version_info
85-
print sys.exec_prefix + '/lib/python' + str(v[0]) + '.' + str(v[1]) + '/site-packages'
86-
")
82+
SET (CMD "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")
8783
ELSE (UNIX)
8884
SET (CMD "
8985
import sys

0 commit comments

Comments
 (0)