diff options
author | Tom Scogland <tscogland@llnl.gov> | 2015-06-11 13:51:31 -0700 |
---|---|---|
committer | Thomas R. W. Scogland <scogland@llnl.gov> | 2015-06-11 13:51:53 -0700 |
commit | d92ac2a6b2bf46fd8ad85ff8c0390fc2869f2e7c (patch) | |
tree | 3437641807de083fece8bade34f48451a168ce40 /lib | |
parent | 0e3d994b052c7db90865ed4387b44bae42211ecb (diff) | |
download | spack-d92ac2a6b2bf46fd8ad85ff8c0390fc2869f2e7c.tar.gz spack-d92ac2a6b2bf46fd8ad85ff8c0390fc2869f2e7c.tar.bz2 spack-d92ac2a6b2bf46fd8ad85ff8c0390fc2869f2e7c.tar.xz spack-d92ac2a6b2bf46fd8ad85ff8c0390fc2869f2e7c.zip |
Small ruby enhancement and tmuxinator package
It is currently less painful to pull the source from github, compile it into a
gem, then install the gem, than it is to download a gem and install it. This
still lacks an activation mechanism, but `spack use tmuxinator` is functional.
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("$_ $@") |