From 8cb0d77354b82dcc7a6579b97604f41b34a789f0 Mon Sep 17 00:00:00 2001 From: BonfaceKilz Date: Tue, 12 Jan 2021 22:43:59 +0300 Subject: 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" --- gn/packages/genenetwork.scm | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'gn/packages') 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 _ -- cgit v1.2.3