Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions easybuild/easyblocks/generic/rubygem.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def install_step(self):
raise EasyBuildError("Ruby module not loaded?")

# this is the 'proper' way to specify a custom installation prefix: set $GEM_HOME
if not self.is_extension:
if not self.is_extension or self.master.name != 'Ruby':
env.setvar('GEM_HOME', self.installdir)

bindir = os.path.join(self.installdir, 'bin')
Expand All @@ -100,6 +100,6 @@ def make_module_extra(self):
"""Extend $GEM_PATH in module file."""
txt = super(RubyGem, self).make_module_extra()
# for stand-alone Ruby gem installs, $GEM_PATH needs to be updated
if not self.is_extension:
if not self.is_extension or self.master.name != 'Ruby':
txt += self.module_generator.prepend_paths('GEM_PATH', [''])
return txt