Skip to content
Snippets Groups Projects
Commit c670945b authored by Andreas Müller's avatar Andreas Müller
Browse files

Replaced non-working quickfix with more robust approach.

parent 567e3819
No related branches found
No related tags found
No related merge requests found
...@@ -132,7 +132,7 @@ class Nest(CMakePackage): ...@@ -132,7 +132,7 @@ class Nest(CMakePackage):
make("install") make("install")
def cmake_args(self): def cmake_args(self):
args = [] args = ["-DCMAKE_INSTALL_LIBDIR=lib"]
for flag in "boost mpi openmp optimize".split(): for flag in "boost mpi openmp optimize".split():
if '+' + flag in self.spec: if '+' + flag in self.spec:
...@@ -181,10 +181,8 @@ class Nest(CMakePackage): ...@@ -181,10 +181,8 @@ class Nest(CMakePackage):
def installcheck(self): def installcheck(self):
make("installcheck") make("installcheck")
# quick-fix to add lib64/python3.8/site-packages to the PYTHONPATH;
# this should happen automatically for packages extending Python...
def setup_run_environment(self, env): def setup_run_environment(self, env):
env.prepend_path('PYTHONPATH', self.prefix.lib64.join('python3.8/site-packages')) pass
def install_test(self): def install_test(self):
# test inspired by py-numpy spack package # test inspired by py-numpy spack package
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment