Rename some environment methods to be less repetitive, add set_path.
This commit is contained in:
@@ -25,9 +25,10 @@ def setup_dependent_environment(self, spack_env, run_env, extension_spec):
|
||||
if d.package.extends(self.spec):
|
||||
ruby_paths.append(d.prefix)
|
||||
|
||||
spack_env.set_env('GEM_PATH', concatenate_paths(ruby_paths))
|
||||
spack_env.set_path('GEM_PATH', ruby_paths)
|
||||
|
||||
# The actual installation path for this gem
|
||||
spack_env.set_env('GEM_HOME', extension_spec.prefix)
|
||||
spack_env.set('GEM_HOME', extension_spec.prefix)
|
||||
|
||||
def modify_module(self, module, spec, ext_spec):
|
||||
"""Called before ruby modules' install() methods. Sets GEM_HOME
|
||||
|
Reference in New Issue
Block a user