diff options
author | Todd Gamblin <tgamblin@llnl.gov> | 2016-03-23 00:36:32 -0700 |
---|---|---|
committer | Todd Gamblin <tgamblin@llnl.gov> | 2016-03-23 00:36:32 -0700 |
commit | c4134ee71e43a6a2a38822e25cc72ca73efdcfea (patch) | |
tree | 80432ea6684b5a3ab35d9d89b548e5c564780a2d /lib | |
parent | 2d69f386d03fb1c13488c08583177c322b3e7b8c (diff) | |
download | spack-c4134ee71e43a6a2a38822e25cc72ca73efdcfea.tar.gz spack-c4134ee71e43a6a2a38822e25cc72ca73efdcfea.tar.bz2 spack-c4134ee71e43a6a2a38822e25cc72ca73efdcfea.tar.xz spack-c4134ee71e43a6a2a38822e25cc72ca73efdcfea.zip |
Fix #608: broken numpy build.
- Failed to catch all instances of modify_module when it was renamed
to setup_dependent_package.
- Refactored remaining modify_module calls.
- Also modified Python's setup_dependent_package slightly: only
creates empty site-packages directory for Python extensions now, not
for all dependents.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/spack/spack/modules.py | 4 | ||||
-rw-r--r-- | lib/spack/spack/preferred_packages.py | 4 |
2 files changed, 5 insertions, 3 deletions
diff --git a/lib/spack/spack/modules.py b/lib/spack/spack/modules.py index 05c93cd3e6..8ed98e5d38 100644 --- a/lib/spack/spack/modules.py +++ b/lib/spack/spack/modules.py @@ -160,8 +160,8 @@ class EnvModule(object): # package-specific modifications for extendee in self.pkg.extendees: extendee_spec = self.spec[extendee] - extendee_spec.package.modify_module( - self.pkg.module, extendee_spec, self.spec) + extendee_spec.package.setup_dependent_package( + self.pkg.module, self.spec) # Package-specific environment modifications spack_env = EnvironmentModifications() diff --git a/lib/spack/spack/preferred_packages.py b/lib/spack/spack/preferred_packages.py index 4d8526c75f..f0a5382dc9 100644 --- a/lib/spack/spack/preferred_packages.py +++ b/lib/spack/spack/preferred_packages.py @@ -150,7 +150,9 @@ class PreferredPackages(object): def version_compare(self, pkgname, a, b): """Return less-than-0, 0, or greater than 0 if version a of pkgname is respecively less-than, equal-to, or greater-than version b of pkgname. - One version is less-than another if it is preferred over the other.""" + Versions marked 'preferred=True' in package.py take precedence over any + versions not marked preferred. + """ return self._spec_compare(pkgname, 'version', a, b, True, None) |