]> git.pld-linux.org Git - packages/mapnik.git/commitdiff
- fix installing python bindings auto/th/mapnik-2.2.0-8
authorJan Rękorajski <baggins@pld-linux.org>
Sun, 6 Dec 2015 00:33:40 +0000 (01:33 +0100)
committerJan Rękorajski <baggins@pld-linux.org>
Sun, 6 Dec 2015 00:33:40 +0000 (01:33 +0100)
- rel 8

mapnik.spec
python-install.patch [new file with mode: 0644]

index d67f452d82fe9cd459dd6778adda594604133485..7a2c9dd10a0626d07569e2e3729b18a9c656872f 100644 (file)
@@ -2,7 +2,7 @@
 Summary:       Toolkit for developing GIS (Geographic Information Systems) applications
 Name:          mapnik
 Version:       2.2.0
-Release:       7
+Release:       8
 License:       LGPL v2.1
 Group:         Applications
 Source0:       https://github.com/mapnik/mapnik/archive/v%{version}.tar.gz
@@ -10,6 +10,7 @@ Source0:      https://github.com/mapnik/mapnik/archive/v%{version}.tar.gz
 Patch0:                %{name}-boost_lib_names.patch
 Patch1:                mapnik-boost-megadiff.diff
 Patch2:                %{name}-build.patch
+Patch3:                python-install.patch
 URL:           http://mapnik.org/
 BuildRequires: boost-devel
 BuildRequires: boost-python-devel
@@ -85,6 +86,7 @@ Statyczna biblioteka Mapnik.
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
+%patch3 -p1
 
 %build
 %scons \
diff --git a/python-install.patch b/python-install.patch
new file mode 100644 (file)
index 0000000..a0c9cab
--- /dev/null
@@ -0,0 +1,14 @@
+--- mapnik-2.2.0/SConstruct~   2015-12-06 00:40:11.000000000 +0100
++++ mapnik-2.2.0/SConstruct    2015-12-06 01:18:15.465765196 +0100
+@@ -1502,9 +1502,9 @@
+             # Note: we use the plat_specific argument here to make sure to respect the arch-specific site-packages location
+             if py3:
+-                site_packages = '''%s -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(plat_specific=True))"''' % env['PYTHON']
++                site_packages = '''%s -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(plat_specific=True,prefix=\'/usr\'))"''' % env['PYTHON']
+             else:
+-                site_packages = '''%s -c "from distutils.sysconfig import get_python_lib; print get_python_lib(plat_specific=True)"''' % env['PYTHON']
++                site_packages = '''%s -c "from distutils.sysconfig import get_python_lib; print get_python_lib(plat_specific=True,prefix=\'/usr\')"''' % env['PYTHON']
+             env['PYTHON_SITE_PACKAGES'] = call(site_packages)
+         else:
+             env['PYTHON_SYS_PREFIX'] = os.popen('''%s -c "import sys; print sys.prefix"''' % env['PYTHON']).read().strip()
This page took 0.095587 seconds and 4 git commands to generate.