Workaround for #9149 (#12050)

This commit is contained in:
Adam J. Stewart 2019-07-18 13:57:37 -05:00 committed by GitHub
parent 620d728aa5
commit c96d687c7c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -201,6 +201,9 @@ def build_args(self, spec, prefix):
return args
def setup_environment(self, spack_env, run_env):
# If py-numpy is installed as an external package, python won't
# be available in the spec. See #9149 for details.
if 'python' in self.spec:
python_version = self.spec['python'].version.up_to(2)
include_path = join_path(