mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-06 02:06:46 +01:00
63b39af496
- make sure libreadline is found at runtime - make sure python libraries are found at runtime - add libraries necessary to pass the testsuite and standard libraries
21 lines
553 B
Diff
21 lines
553 B
Diff
diff --git a/rpy/rinterface/__init__.py b/rpy/rinterface/__init__.py
|
|
index 9362e57..1af258e 100644
|
|
--- a/rpy/rinterface/__init__.py
|
|
+++ b/rpy/rinterface/__init__.py
|
|
@@ -43,6 +43,15 @@ if not R_HOME:
|
|
if not os.environ.get("R_HOME"):
|
|
os.environ['R_HOME'] = R_HOME
|
|
|
|
+# path to libraries
|
|
+existing = os.environ.get('R_LIBS_SITE')
|
|
+if existing is not None:
|
|
+ prefix = existing + ':'
|
|
+else:
|
|
+ prefix = ''
|
|
+additional = '@NIX_R_LIBS_SITE@'
|
|
+os.environ['R_LIBS_SITE'] = prefix + additional
|
|
+
|
|
if sys.platform == 'win32':
|
|
_load_r_dll(R_HOME)
|
|
|