mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 21:38:07 -05:00
gnu: ghmm: Do not set PYTHONPATH.
* gnu/packages/machine-learning.scm (ghmm): Remove trailing #t. [phases]: Do not reorder the check phase after the install phase. {fix-PYTHONPATH}: Remove phase.
This commit is contained in:
parent
4327f06ed5
commit
e3bc7881f2
1 changed files with 3 additions and 18 deletions
|
@ -217,20 +217,7 @@ (define-public ghmm
|
||||||
#:phases
|
#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
(add-after 'unpack 'enter-dir
|
(add-after 'unpack 'enter-dir
|
||||||
(lambda _ (chdir "ghmm") #t))
|
(lambda _ (chdir "ghmm")))
|
||||||
(delete 'check)
|
|
||||||
(add-after 'install 'check
|
|
||||||
(assoc-ref %standard-phases 'check))
|
|
||||||
(add-before 'check 'fix-PYTHONPATH
|
|
||||||
(lambda* (#:key inputs outputs #:allow-other-keys)
|
|
||||||
(let ((python-version (python-version
|
|
||||||
(assoc-ref inputs "python"))))
|
|
||||||
(setenv "PYTHONPATH"
|
|
||||||
(string-append (getenv "PYTHONPATH")
|
|
||||||
":" (assoc-ref outputs "out")
|
|
||||||
"/lib/python" python-version
|
|
||||||
"/site-packages")))
|
|
||||||
#t))
|
|
||||||
(add-after 'enter-dir 'fix-runpath
|
(add-after 'enter-dir 'fix-runpath
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
(substitute* "ghmmwrapper/setup.py"
|
(substitute* "ghmmwrapper/setup.py"
|
||||||
|
@ -241,8 +228,7 @@ (define-public ghmm
|
||||||
line
|
line
|
||||||
"\"-Wl,-rpath="
|
"\"-Wl,-rpath="
|
||||||
(assoc-ref outputs "out")
|
(assoc-ref outputs "out")
|
||||||
"/lib\", ")))
|
"/lib\", ")))))
|
||||||
#t))
|
|
||||||
(add-after 'enter-dir 'disable-broken-tests
|
(add-after 'enter-dir 'disable-broken-tests
|
||||||
(lambda _
|
(lambda _
|
||||||
(substitute* "tests/Makefile.am"
|
(substitute* "tests/Makefile.am"
|
||||||
|
@ -262,8 +248,7 @@ (define-public ghmm
|
||||||
line indent)
|
line indent)
|
||||||
(string-append indent
|
(string-append indent
|
||||||
"@unittest.skip(\"Disabled by Guix\")\n"
|
"@unittest.skip(\"Disabled by Guix\")\n"
|
||||||
line)))
|
line))))))))
|
||||||
#t)))))
|
|
||||||
(inputs
|
(inputs
|
||||||
`(("python" ,python-2) ; only Python 2 is supported
|
`(("python" ,python-2) ; only Python 2 is supported
|
||||||
("libxml2" ,libxml2)))
|
("libxml2" ,libxml2)))
|
||||||
|
|
Loading…
Reference in a new issue