Skip to content

Commit

Permalink
py-numpy: hack to make entry in packages.yaml work. (spack#122)
Browse files Browse the repository at this point in the history
  • Loading branch information
matz-e authored Oct 24, 2018
1 parent 2fefab5 commit 603a6da
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion var/spack/repos/builtin/packages/py-numpy/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,10 @@ class PyNumpy(PythonPackage):
depends_on('py-pytest', when='@1.15:', type='test')

def setup_dependent_package(self, module, dependent_spec):
python_version = self.spec['python'].version.up_to(2)
if 'python' in self.spec:
python_version = self.spec['python'].version.up_to(2)
else:
python_version = dependent_spec['python'].version.up_to(2)

self.spec.include = join_path(
self.prefix.lib,
Expand Down

0 comments on commit 603a6da

Please sign in to comment.