diff options
author | Todd Gamblin <tgamblin@llnl.gov> | 2015-06-11 16:31:15 -0700 |
---|---|---|
committer | Todd Gamblin <tgamblin@llnl.gov> | 2015-06-11 16:31:15 -0700 |
commit | 3cb10f92af8bd2a449fc326888f3ce93184e45cf (patch) | |
tree | 5806b643c28fa95d519a2888e9272835912ae4ee /lib | |
parent | 9955df896bb197f68e6e4f0f55286f1d0b5c400d (diff) | |
parent | d92ac2a6b2bf46fd8ad85ff8c0390fc2869f2e7c (diff) | |
download | spack-3cb10f92af8bd2a449fc326888f3ce93184e45cf.tar.gz spack-3cb10f92af8bd2a449fc326888f3ce93184e45cf.tar.bz2 spack-3cb10f92af8bd2a449fc326888f3ce93184e45cf.tar.xz spack-3cb10f92af8bd2a449fc326888f3ce93184e45cf.zip |
Merge pull request #62 from trws/tmuxinator
Partial ruby extension and tmuxinator package
Diffstat (limited to 'lib')
-rw-r--r-- | lib/spack/spack/modules.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/spack/spack/modules.py b/lib/spack/spack/modules.py index 493c454f1d..01915a5d64 100644 --- a/lib/spack/spack/modules.py +++ b/lib/spack/spack/modules.py @@ -130,6 +130,13 @@ class EnvModule(object): if site_packages: add_path('PYTHONPATH', site_packages[0]) + if self.spec.package.extends(spack.spec.Spec('ruby')): + add_path('GEM_PATH', self.spec.prefix) + + # Allow module path extensions from packages + for key, val in self.spec.package.extra_environment: + add_path(key, val) + # short description is just the package + version # TODO: maybe packages can optionally provide it. self.short_description = self.spec.format("$_ $@") |