summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJungwon Kim <kimj@ornl.gov>2021-03-31 14:08:18 -0400
committerGitHub <noreply@github.com>2021-03-31 11:08:18 -0700
commit2196c24e9746488f5e6d2da852560ee4c670cf97 (patch)
treeb60f4ab7d8efa7f15606e799bfaa380aeab2b8f8
parent904867703e06134d8b9767a10b6f5806a188adf9 (diff)
downloadspack-2196c24e9746488f5e6d2da852560ee4c670cf97.tar.gz
spack-2196c24e9746488f5e6d2da852560ee4c670cf97.tar.bz2
spack-2196c24e9746488f5e6d2da852560ee4c670cf97.tar.xz
spack-2196c24e9746488f5e6d2da852560ee4c670cf97.zip
papyrus: setup environment variables #22681 (#22682)
-rw-r--r--var/spack/repos/builtin/packages/papyrus/package.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/papyrus/package.py b/var/spack/repos/builtin/packages/papyrus/package.py
index 6bab261215..4430e93652 100644
--- a/var/spack/repos/builtin/packages/papyrus/package.py
+++ b/var/spack/repos/builtin/packages/papyrus/package.py
@@ -4,6 +4,7 @@
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
+import os
class Papyrus(CMakePackage):
@@ -19,3 +20,13 @@ class Papyrus(CMakePackage):
version('1.0.0', sha256='5d57c0bcc80de48951e42460785783b882087a5714195599d773a6eabde5c4c4')
depends_on('mpi')
+
+ def setup_run_environment(self, env):
+ if os.path.isdir(self.prefix.lib64):
+ lib_dir = self.prefix.lib64
+ else:
+ lib_dir = self.prefix.lib
+
+ env.prepend_path('CPATH', self.prefix.include)
+ env.prepend_path('LIBRARY_PATH', lib_dir)
+ env.prepend_path('LD_LIBRARY_PATH', lib_dir)