summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMilton Woods <miltonjwoods@gmail.com>2017-07-21 05:13:36 +1000
committerAdam J. Stewart <ajstewart426@gmail.com>2017-07-20 14:13:36 -0500
commit78762628263015a901eccbcfd0b36626adf6aa91 (patch)
treea97a4583e599524908b2541f8f9850393ad8b953
parent0ea2c7904a75290ce577588ed4539c8c532818f7 (diff)
downloadspack-78762628263015a901eccbcfd0b36626adf6aa91.tar.gz
spack-78762628263015a901eccbcfd0b36626adf6aa91.tar.bz2
spack-78762628263015a901eccbcfd0b36626adf6aa91.tar.xz
spack-78762628263015a901eccbcfd0b36626adf6aa91.zip
py-cdat-lite: ensure that RPATH includes netcdf (#4521)
-rw-r--r--var/spack/repos/builtin/packages/py-cdat-lite/package.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-cdat-lite/package.py b/var/spack/repos/builtin/packages/py-cdat-lite/package.py
index cec2ce1fbc..257abc33f8 100644
--- a/var/spack/repos/builtin/packages/py-cdat-lite/package.py
+++ b/var/spack/repos/builtin/packages/py-cdat-lite/package.py
@@ -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)