Skip to content

Commit

Permalink
py-rtree: fixes for standalone modules. (BlueBrain#787)
Browse files Browse the repository at this point in the history
  • Loading branch information
matz-e authored Apr 24, 2020
1 parent b4af750 commit e61bc46
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions var/spack/repos/builtin/packages/py-rtree/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,16 @@ class PyRtree(PythonPackage):
depends_on('py-setuptools', type='build')
depends_on('libspatialindex')

def setup_environment(self, spack_env, run_env):
def setup_build_environment(self, env):
lib = self.spec['libspatialindex'].prefix.lib
spack_env.set('SPATIALINDEX_LIBRARY',
join_path(lib, 'libspatialindex.%s' % dso_suffix))
spack_env.set('SPATIALINDEX_C_LIBRARY',
join_path(lib, 'libspatialindex_c.%s' % dso_suffix))
env.set('SPATIALINDEX_LIBRARY',
join_path(lib, 'libspatialindex.%s' % dso_suffix))
env.set('SPATIALINDEX_C_LIBRARY',
join_path(lib, 'libspatialindex_c.%s' % dso_suffix))

def setup_run_environment(self, env):
lib = self.spec['libspatialindex'].prefix.lib
env.set('SPATIALINDEX_LIBRARY',
join_path(lib, 'libspatialindex.%s' % dso_suffix))
env.set('SPATIALINDEX_C_LIBRARY',
join_path(lib, 'libspatialindex_c.%s' % dso_suffix))

0 comments on commit e61bc46

Please sign in to comment.