diff options
author | Sinan <sbulutw@gmail.com> | 2019-11-25 12:01:14 -0700 |
---|---|---|
committer | Adam J. Stewart <ajstewart426@gmail.com> | 2019-11-25 13:01:14 -0600 |
commit | 70e43773484b87605a12414f59a35e3baa3e2c0f (patch) | |
tree | f79eac178e0990afa7ce344f337d71610df7a53f /var/spack/repos/builtin/packages/py-python-mapnik/package.py | |
parent | c349759acdf4256181beca9b3c9e4e0494c9707c (diff) | |
download | spack-70e43773484b87605a12414f59a35e3baa3e2c0f.tar.gz spack-70e43773484b87605a12414f59a35e3baa3e2c0f.tar.bz2 spack-70e43773484b87605a12414f59a35e3baa3e2c0f.tar.xz spack-70e43773484b87605a12414f59a35e3baa3e2c0f.zip |
Mapnik: fix runtime error involving py-pycairo and PDF (#13865)
* fix runtime error involving py-pycairo and PDF
* Update var/spack/repos/builtin/packages/py-python-mapnik/package.py
Co-Authored-By: Adam J. Stewart <ajstewart426@gmail.com>
* fix env setup
Diffstat (limited to 'var/spack/repos/builtin/packages/py-python-mapnik/package.py')
-rw-r--r-- | var/spack/repos/builtin/packages/py-python-mapnik/package.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/py-python-mapnik/package.py b/var/spack/repos/builtin/packages/py-python-mapnik/package.py index 6d1cf944b0..4d2a405f6f 100644 --- a/var/spack/repos/builtin/packages/py-python-mapnik/package.py +++ b/var/spack/repos/builtin/packages/py-python-mapnik/package.py @@ -20,10 +20,12 @@ class PyPythonMapnik(PythonPackage): depends_on('py-setuptools', type='build') depends_on('mapnik', type=('build', 'link', 'run')) depends_on('boost +python+thread') + # py-pycairo is need by mapnik.printing + depends_on('py-pycairo', type=('build', 'run')) # Package can't find boost_python without the following - def setup_environment(self, spack_env, run_env): + def setup_build_environment(self, env): # Inform the package that boost python library is of form # 'libboost_python27.so' as opposed to 'libboost_python.so' py_ver = str(self.spec['python'].version.up_to(2).joined) - spack_env.set('BOOST_PYTHON_LIB', 'boost_python' + py_ver) + env.set('BOOST_PYTHON_LIB', 'boost_python' + py_ver) |