summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam J. Stewart <ajstewart426@gmail.com>2017-05-18 12:12:08 -0500
committerGitHub <noreply@github.com>2017-05-18 12:12:08 -0500
commitfa90a65d0964bbaaea4f267d5634c0410e0c773e (patch)
treeca39697cd2ea2d24f1b188e2a14ee04c11f6d067
parent5486d021d686f256a008dd9ab90dfb5b9fa60967 (diff)
downloadspack-fa90a65d0964bbaaea4f267d5634c0410e0c773e.tar.gz
spack-fa90a65d0964bbaaea4f267d5634c0410e0c773e.tar.bz2
spack-fa90a65d0964bbaaea4f267d5634c0410e0c773e.tar.xz
spack-fa90a65d0964bbaaea4f267d5634c0410e0c773e.zip
Fix spec['python'].home (#4228)
-rw-r--r--var/spack/repos/builtin/packages/python/package.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/python/package.py b/var/spack/repos/builtin/packages/python/package.py
index 12b77813d1..c5f0f23d6d 100644
--- a/var/spack/repos/builtin/packages/python/package.py
+++ b/var/spack/repos/builtin/packages/python/package.py
@@ -531,6 +531,8 @@ class Python(AutotoolsPackage):
module.site_packages_dir = join_path(dependent_spec.prefix,
self.site_packages_dir)
+ self.spec.home = self.home
+
# Make the site packages directory for extensions
if dependent_spec.package.is_extension:
mkdirp(module.site_packages_dir)