mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: python-astropy: Simplify check phase.
* gnu/packages/astronomy.scm (python-astropy) [phases] {check}: Remove make file writable and build extension steps. Run tests from output, which provides access to built library. Change-Id: I87168de8197bed0c47274bca5fb3a92a02f5b845
This commit is contained in:
parent
9187e166e5
commit
6d6bcb631d
1 changed files with 2 additions and 6 deletions
|
@ -3729,14 +3729,10 @@ instruments.")
|
|||
(lambda* (#:key tests? test-flags #:allow-other-keys)
|
||||
(when tests?
|
||||
(setenv "HOME" "/tmp")
|
||||
(make-file-writable "astropy/_compiler.c")
|
||||
;; Extensions have to be rebuilt before running the tests.
|
||||
(invoke "python" "setup.py" "build_ext" "--inplace"
|
||||
"-j" (number->string (parallel-job-count)))
|
||||
;; Step out of the source directory to avoid interference; we
|
||||
;; want to run the installed code with extensions etc.
|
||||
(with-directory-excursion "/tmp"
|
||||
(apply invoke "pytest" "-v" test-flags))))))))
|
||||
(with-directory-excursion #$output
|
||||
(apply invoke "pytest" "-vv" test-flags))))))))
|
||||
(native-inputs
|
||||
(list nss-certs-for-test
|
||||
pkg-config
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue