summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authoralalazo <massimiliano.culpo@googlemail.com>2016-03-23 11:18:11 +0100
committeralalazo <massimiliano.culpo@googlemail.com>2016-03-24 10:57:46 +0100
commit758a9c9096bd6c306f2dba0e40b46544dcec1992 (patch)
tree1e84c71f87075afb247295b7871d0ba4e15d761d /lib
parent7cf1b7ed51bae677f60d61f5f9db40b98df5dc6b (diff)
downloadspack-758a9c9096bd6c306f2dba0e40b46544dcec1992.tar.gz
spack-758a9c9096bd6c306f2dba0e40b46544dcec1992.tar.bz2
spack-758a9c9096bd6c306f2dba0e40b46544dcec1992.tar.xz
spack-758a9c9096bd6c306f2dba0e40b46544dcec1992.zip
python extensions : create PYTHONPATH in module files
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/modules.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/spack/spack/modules.py b/lib/spack/spack/modules.py
index 6c32937c3c..d45fdde703 100644
--- a/lib/spack/spack/modules.py
+++ b/lib/spack/spack/modules.py
@@ -161,13 +161,13 @@ class EnvModule(object):
# Let the extendee modify their extensions before asking for
# package-specific modifications
- for extendee in self.pkg.extendees:
- extendee_spec = self.spec[extendee]
- extendee_spec.package.setup_dependent_package(
- self.pkg.module, self.spec)
+ spack_env = EnvironmentModifications()
+ for item in self.pkg.extendees:
+ package = self.spec[item].package
+ package.setup_dependent_package(self.pkg.module, self.spec)
+ package.setup_dependent_environment(spack_env, env, self.spec)
# Package-specific environment modifications
- spack_env = EnvironmentModifications()
self.spec.package.setup_environment(spack_env, env)
# TODO : implement site-specific modifications and filters