python extensions : create PYTHONPATH in module files

This commit is contained in:
alalazo
2016-03-23 11:18:11 +01:00
parent 7cf1b7ed51
commit 758a9c9096
2 changed files with 9 additions and 6 deletions

View File

@@ -161,13 +161,13 @@ def write(self):
# 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