]> git.pld-linux.org Git - packages/mapnik.git/blob - python-install.patch
- fix installing python bindings
[packages/mapnik.git] / python-install.patch
1 --- mapnik-2.2.0/SConstruct~    2015-12-06 00:40:11.000000000 +0100
2 +++ mapnik-2.2.0/SConstruct     2015-12-06 01:18:15.465765196 +0100
3 @@ -1502,9 +1502,9 @@
4  
5              # Note: we use the plat_specific argument here to make sure to respect the arch-specific site-packages location
6              if py3:
7 -                site_packages = '''%s -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(plat_specific=True))"''' % env['PYTHON']
8 +                site_packages = '''%s -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(plat_specific=True,prefix=\'/usr\'))"''' % env['PYTHON']
9              else:
10 -                site_packages = '''%s -c "from distutils.sysconfig import get_python_lib; print get_python_lib(plat_specific=True)"''' % env['PYTHON']
11 +                site_packages = '''%s -c "from distutils.sysconfig import get_python_lib; print get_python_lib(plat_specific=True,prefix=\'/usr\')"''' % env['PYTHON']
12              env['PYTHON_SITE_PACKAGES'] = call(site_packages)
13          else:
14              env['PYTHON_SYS_PREFIX'] = os.popen('''%s -c "import sys; print sys.prefix"''' % env['PYTHON']).read().strip()
This page took 0.210692 seconds and 3 git commands to generate.