summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authoreugeneswalker <38933153+eugeneswalker@users.noreply.github.com>2020-08-19 15:06:08 -0700
committerGitHub <noreply@github.com>2020-08-19 15:06:08 -0700
commitb5db5cf259fe04fdefe642830234c78ecacac1b9 (patch)
tree2e40006a8b8904e3b7ecb97d9d1a9a2a5cffb814 /var
parent1c0a92662bee39bbd56ea5457aad3a31e45151b6 (diff)
downloadspack-b5db5cf259fe04fdefe642830234c78ecacac1b9.tar.gz
spack-b5db5cf259fe04fdefe642830234c78ecacac1b9.tar.bz2
spack-b5db5cf259fe04fdefe642830234c78ecacac1b9.tar.xz
spack-b5db5cf259fe04fdefe642830234c78ecacac1b9.zip
prepend ${NINJA_ROOT}/misc to PYTHONPATH in run environment (#18182)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/ninja/package.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/ninja/package.py b/var/spack/repos/builtin/packages/ninja/package.py
index b86fa79863..3924a7a635 100644
--- a/var/spack/repos/builtin/packages/ninja/package.py
+++ b/var/spack/repos/builtin/packages/ninja/package.py
@@ -40,6 +40,9 @@ class Ninja(Package):
ninja_test = Executable('./ninja_test')
ninja_test()
+ def setup_run_environment(self, env):
+ env.prepend_path('PYTHONPATH', self.prefix.misc)
+
def install(self, spec, prefix):
mkdir(prefix.bin)
install('ninja', prefix.bin)