File: RscriptIsSystemVersion.patch

package info (click to toggle)
bcbio 1.2.9-4
  • links: PTS, VCS
  • area: contrib
  • in suites: sid
  • size: 36,792 kB
  • sloc: python: 45,766; sh: 209; makefile: 159; xml: 129
file content (33 lines) | stat: -rw-r--r-- 1,263 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
Author: Steffen Moeller <moeller@debian.org>
Description: With Debian we want to use _our_ R installation, while with the
 typical conda-installation of bcbio this is the other way around. It is
 important not to mix these up, hence this strict return of the sytem
 version.
 This patch is not meant to be sent upstream.

Index: bcbio/bcbio/utils.py
===================================================================
--- bcbio.orig/bcbio/utils.py
+++ bcbio/bcbio/utils.py
@@ -694,18 +694,11 @@ def dictapply(d, fn):
     return d
 
 def Rscript_cmd(env="base"):
-    """Retrieve path to locally installed Rscript in the given env.
+    """Original bcbio: Retrieve path to locally installed Rscript in the given env.
     Prefers Rscript version installed via conda to a system version.
+    Debian: We use ours.
     """
-    if env == "base":
-        rscript = which(os.path.join(get_bcbio_bin(), "Rscript"))
-    else:
-        conda_dir = get_conda_dir()
-        rscript = os.path.join(conda_dir, "envs", env, "bin", "Rscript")
-    if rscript:
-        return rscript
-    else:
-        return which("Rscript")
+    return "/usr/bin/Rscript"
 
 def R_sitelib(env="base"):
     """Retrieve the R site-library installed with the bcbio installer for a given