aboutsummaryrefslogtreecommitdiff
path: root/gn/packages
diff options
context:
space:
mode:
authorBonfaceKilz2021-01-12 22:43:59 +0300
committerGitea2021-01-12 14:09:34 -0600
commit8cb0d77354b82dcc7a6579b97604f41b34a789f0 (patch)
treef2c2e38e4627c69993f1f6c3af682ae84aff8c0b /gn/packages
parenta63306a1b15ce60b93db1ef83e5cff954f6b85f5 (diff)
downloadguix-bioinformatics-8cb0d77354b82dcc7a6579b97604f41b34a789f0.tar.gz
gn: genenetwork1: Create "useralt" and replace "user" with it
* gn/packages/genenetwork.scm (genenetwork1): [arguments]: In 'changes-for-deployed-service, copy "web/webqtl/user" to "web/webqtl/useralt" and replace how "user" is imported in "web/webqtl/main.py"
Diffstat (limited to 'gn/packages')
-rw-r--r--gn/packages/genenetwork.scm7
1 files changed, 7 insertions, 0 deletions
diff --git a/gn/packages/genenetwork.scm b/gn/packages/genenetwork.scm
index 4173157..e8c11a7 100644
--- a/gn/packages/genenetwork.scm
+++ b/gn/packages/genenetwork.scm
@@ -772,6 +772,13 @@ written in C")
(symlink "/gnshare/gn/web/genotypes" "web/genotypes")
(substitute* "web/webqtl/base/webqtlConfig.py"
(("http://www.genenetwork.org") "http://gn1-test.genenetwork.org"))
+ ;; Inside the gn1 container, there's some conflict when
+ ;; importing the user module, therefore, as a hack, rename
+ ;; user to useralt
+ (mkdir "web/webqtl/useralt")
+ (copy-recursively "web/webqtl/user" "web/webqtl/useralt")
+ (substitute* '("web/webqtl/main.py")
+ (("from user import") "from useralt import"))
#t)))
(add-after 'unpack 'use-local-links
(lambda _