aboutsummaryrefslogtreecommitdiff
path: root/gn/past/genenetwork1.scm
diff options
context:
space:
mode:
authorEfraim Flashner2022-12-11 15:03:42 +0200
committerEfraim Flashner2022-12-11 15:06:07 +0200
commitddb46629ba825ff4501528cfa1de07cb077ea6d3 (patch)
tree0f4cea04347f1e810131f829dde29612055bed3c /gn/past/genenetwork1.scm
parent4a94d82150bae9ca7a9f3926125b6a1974b229d0 (diff)
downloadguix-bioinformatics-ddb46629ba825ff4501528cfa1de07cb077ea6d3.tar.gz
gn: Fix building genenetwork1
Diffstat (limited to 'gn/past/genenetwork1.scm')
-rw-r--r--gn/past/genenetwork1.scm17
1 files changed, 12 insertions, 5 deletions
diff --git a/gn/past/genenetwork1.scm b/gn/past/genenetwork1.scm
index c557ee7..c629c7e 100644
--- a/gn/past/genenetwork1.scm
+++ b/gn/past/genenetwork1.scm
@@ -110,15 +110,22 @@ location of a putative QTL.")
`(#:python ,python-2.4
#:phases
(modify-phases %standard-phases
+ (replace 'add-install-to-pythonpath
+ (lambda* (#:key inputs outputs #:allow-other-keys)
+ (setenv "PYTHONPATH"
+ (string-append (site-packages inputs outputs) ":"
+ (getenv "PYTHONPATH")))))
+ (delete 'sanity-check) ; Not applicable to python-2.4
(add-after 'unpack 'make-max-markername-size-larger
(lambda _
(substitute* "Src/dataset.c"
- (("512") "2048"))
- #t))
+ (("512") "2048"))))
(replace 'check
- (lambda* (#:key inputs outputs #:allow-other-keys)
- (add-installed-pythonpath inputs outputs)
- (invoke "python" "test/runtest.py"))))))
+ (lambda* (#:key tests? inputs outputs #:allow-other-keys)
+ (when tests?
+ (setenv "PYTHONPATH" (string-append (site-packages inputs outputs) ":"
+ (getenv "PYTHONPATH")))
+ (invoke "python" "test/runtest.py")))))))
(native-inputs
`(("python24-setuptools" ,python24-setuptools)))
(home-page "http://qtlreaper.sourceforge.net/")