Merge pull request #1323 from glennpj/rlib

Set environment variables for R
This commit is contained in:
Todd Gamblin 2016-07-20 15:43:26 -07:00 committed by GitHub
commit e389afedaa

View file

@ -136,6 +136,14 @@ def setup_dependent_environment(self, spack_env, run_env, extension_spec):
run_env.prepend_path('R_LIBS', os.path.join( run_env.prepend_path('R_LIBS', os.path.join(
extension_spec.prefix, self.r_lib_dir)) extension_spec.prefix, self.r_lib_dir))
def setup_environment(self, spack_env, run_env):
run_env.prepend_path('LIBRARY_PATH',
join_path(self.prefix, 'rlib', 'R', 'lib'))
run_env.prepend_path('LD_LIBRARY_PATH',
join_path(self.prefix, 'rlib', 'R', 'lib'))
run_env.prepend_path('CPATH',
join_path(self.prefix, 'rlib', 'R', 'include'))
def setup_dependent_package(self, module, ext_spec): def setup_dependent_package(self, module, ext_spec):
"""Called before R modules' install() methods. In most cases, """Called before R modules' install() methods. In most cases,
extensions will only need to have one line: extensions will only need to have one line: