summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorSajid Ali <30510036+s-sajid-ali@users.noreply.github.com>2020-02-13 20:16:34 -0600
committerGitHub <noreply@github.com>2020-02-13 20:16:34 -0600
commitc607288a7c9a63d6b36b455b9c99142546050398 (patch)
tree7704b442bded1945ac1b23351d5e975dcac9f48b /var
parentd524abad20c17ddeb1031b803eeefa78928610de (diff)
downloadspack-c607288a7c9a63d6b36b455b9c99142546050398.tar.gz
spack-c607288a7c9a63d6b36b455b9c99142546050398.tar.bz2
spack-c607288a7c9a63d6b36b455b9c99142546050398.tar.xz
spack-c607288a7c9a63d6b36b455b9c99142546050398.zip
fix env vars before install (#14575)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/python/package.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/python/package.py b/var/spack/repos/builtin/packages/python/package.py
index 37d65c54c0..978548163b 100644
--- a/var/spack/repos/builtin/packages/python/package.py
+++ b/var/spack/repos/builtin/packages/python/package.py
@@ -212,6 +212,9 @@ class Python(AutotoolsPackage):
# Need this to allow python build to find the Python installation.
env.set('MACOSX_DEPLOYMENT_TARGET', platform.mac_ver()[0])
+ env.unset('PYTHONPATH')
+ env.unset('PYTHONHOME')
+
def configure_args(self):
spec = self.spec
config_args = []