summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormanifest <robqiao@users.noreply.github.com>2020-10-15 23:56:39 +1030
committerGitHub <noreply@github.com>2020-10-15 15:26:39 +0200
commit4b9bdea26bb0ea6ee32f5b329fa87ea9d1c4540e (patch)
tree30e44bb1eb3fc03b6eda311bf446139edb259dc1
parentf45e8ac70bd7535d7886648ee9d327d039d970d3 (diff)
downloadspack-4b9bdea26bb0ea6ee32f5b329fa87ea9d1c4540e.tar.gz
spack-4b9bdea26bb0ea6ee32f5b329fa87ea9d1c4540e.tar.bz2
spack-4b9bdea26bb0ea6ee32f5b329fa87ea9d1c4540e.tar.xz
spack-4b9bdea26bb0ea6ee32f5b329fa87ea9d1c4540e.zip
blasr-libcpp: improved setup_run_environment (#18038)
Added non standard paths to LD_LIBRARY_PATH
-rw-r--r--var/spack/repos/builtin/packages/blasr-libcpp/package.py12
1 files changed, 11 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/blasr-libcpp/package.py b/var/spack/repos/builtin/packages/blasr-libcpp/package.py
index ab2491feb7..658561a39a 100644
--- a/var/spack/repos/builtin/packages/blasr-libcpp/package.py
+++ b/var/spack/repos/builtin/packages/blasr-libcpp/package.py
@@ -15,6 +15,8 @@ class BlasrLibcpp(Package):
homepage = "https://github.com/PacificBiosciences/blasr_libcpp"
url = "https://github.com/PacificBiosciences/blasr_libcpp/archive/5.3.1.tar.gz"
+ maintainers = ['robqiao']
+
version('5.3.1', sha256='45a673255bfe7e29ed1f5bdb6410aa45cb6b907400d038c3da9daf1058b09156')
depends_on('pbbam')
@@ -23,7 +25,7 @@ class BlasrLibcpp(Package):
# major version 1.9 and the 1.10.1 version doesn't build correctly.
# https://github.com/PacificBiosciences/blasr/issues/355
- depends_on('python', type='build')
+ depends_on('python@2.7:2.8', type='build')
phases = ['configure', 'build', 'install']
@@ -49,3 +51,11 @@ class BlasrLibcpp(Package):
env.prepend_path('LD_LIBRARY_PATH', self.spec.prefix.hdf)
env.prepend_path('LD_LIBRARY_PATH', self.spec.prefix.alignment)
env.prepend_path('LD_LIBRARY_PATH', self.spec.prefix.pbdata)
+
+ def setup_run_environment(self, env):
+ env.prepend_path('LD_LIBRARY_PATH',
+ self.spec['blasr-libcpp'].prefix.pbdata)
+ env.prepend_path('LD_LIBRARY_PATH',
+ self.spec['blasr-libcpp'].prefix.alignment)
+ env.prepend_path('LD_LIBRARY_PATH',
+ self.spec['blasr-libcpp'].prefix.hdf)