py-cdat-lite: ensure that RPATH includes netcdf (#4521)

This commit is contained in:
Milton Woods 2017-07-21 05:13:36 +10:00 committed by Adam J. Stewart
parent 0ea2c7904a
commit 7876262826

View File

@ -40,3 +40,14 @@ class PyCdatLite(PythonPackage):
depends_on("python@2.5:2.8", type=('build', 'run'))
depends_on("py-numpy", type=('build', 'run'))
depends_on('py-setuptools', type='build')
phases = ['install']
def install(self, spec, prefix):
"""Install everything from build directory."""
install_args = self.install_args(spec, prefix)
# Combine all phases into a single setup.py command,
# otherwise extensions are rebuilt without rpath by install phase:
self.setup_py('build_ext', '--rpath=%s' % ":".join(self.rpath),
'build_py', 'build_scripts',
'install', *install_args)