Merge pull request #1323 from glennpj/rlib
Set environment variables for R
This commit is contained in:
commit
e389afedaa
1 changed files with 8 additions and 0 deletions
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue