[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
11/20: gnu: python-astropy-healpix: Switch to pyproject-build-system.
From: |
guix-commits |
Subject: |
11/20: gnu: python-astropy-healpix: Switch to pyproject-build-system. |
Date: |
Thu, 25 May 2023 20:39:54 -0400 (EDT) |
monego pushed a commit to branch master
in repository guix.
commit 3c17950affc16215827b6d5cbd7c5eb5cd9d76a6
Author: Sharlatan Hellseher <sharlatanus@gmail.com>
AuthorDate: Wed May 24 22:51:45 2023 +0100
gnu: python-astropy-healpix: Switch to pyproject-build-system.
* gnu/packages/astronomy.scm (python-astropy-healpix)[build-system]: Switch
to
pyproject-build-system.
[arguments]: Do not override the 'check phase. Use G-Expressions.
Signed-off-by: Vinicius Monego <monego@posteo.net>
---
gnu/packages/astronomy.scm | 28 ++++++++++++----------------
1 file changed, 12 insertions(+), 16 deletions(-)
diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm
index 2c99d1051c..ace762e518 100644
--- a/gnu/packages/astronomy.scm
+++ b/gnu/packages/astronomy.scm
@@ -1243,23 +1243,19 @@ astronomy and astrophysics.")
(uri (pypi-uri "astropy_healpix" version))
(sha256
(base32 "1n1svmd41iv944zf4anbnsigd47zr4dfjf49vrc7m6928gmq9hw8"))))
- (build-system python-build-system)
+ (build-system pyproject-build-system)
(arguments
- `(#:phases
- (modify-phases %standard-phases
- ;; This file is opened in both install and check phases.
- (add-before 'install 'writable-compiler
- (lambda _ (make-file-writable "astropy_healpix/_compiler.c")))
- (add-before 'check 'writable-compiler
- (lambda _ (make-file-writable "astropy_healpix/_compiler.c")))
- (replace 'check
- (lambda* (#:key inputs outputs tests? #:allow-other-keys)
- (when tests?
- (add-installed-pythonpath inputs outputs)
- ;; Extensions have to be rebuilt before running the tests.
- (invoke "python" "setup.py" "build_ext" "--inplace")
- (invoke "python" "-m" "pytest"
- "--pyargs" "astropy_healpix")))))))
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ ;; This file is opened in both install and check phases.
+ (add-before 'install 'writable-compiler
+ (lambda _ (make-file-writable "astropy_healpix/_compiler.c")))
+ (add-before 'check 'prepare-test-environment
+ (lambda _
+ ;; Extensions have to be rebuilt before running the tests.
+ (invoke "python" "setup.py" "build_ext" "--inplace")
+ (make-file-writable "astropy_healpix/_compiler.c"))))))
(native-inputs
(list python-extension-helpers
python-hypothesis
- branch master updated (fb1c5d4df7 -> 3299b40b35), guix-commits, 2023/05/25
- 05/20: gnu: python-spherical-geometry: Add update note., guix-commits, 2023/05/25
- 09/20: gnu: python-pyvo: Update to 1.4.1., guix-commits, 2023/05/25
- 14/20: gnu: python-astral: Update to 3.2., guix-commits, 2023/05/25
- 08/20: gnu: python-reproject: Update to 0.10.0., guix-commits, 2023/05/25
- 04/20: gnu: python-sunpy: Update to 4.1.5., guix-commits, 2023/05/25
- 07/20: gnu: python-ccdproc: Enable tests., guix-commits, 2023/05/25
- 06/20: gnu: python-sgp4: Update to 2.22., guix-commits, 2023/05/25
- 11/20: gnu: python-astropy-healpix: Switch to pyproject-build-system.,
guix-commits <=
- 03/20: gnu: python-gwcs: Update to 0.18.3., guix-commits, 2023/05/25
- 02/20: gnu: python-asdf-wcs-schemas: Switch to pyproject-build-system., guix-commits, 2023/05/25
- 12/20: gnu: python-astroquery: Use G-Expressions., guix-commits, 2023/05/25
- 01/20: gnu: python-asdf-astropy: Update to 0.4.0., guix-commits, 2023/05/25
- 10/20: gnu: python-fitsio: Use G-Expressions., guix-commits, 2023/05/25
- 16/20: gnu: python-photutils: Update to 1.7.0., guix-commits, 2023/05/25
- 18/20: gnu: python-asdf: Update to 2.15.0., guix-commits, 2023/05/25
- 13/20: gnu: python-pynbody: Update to 1.3.1., guix-commits, 2023/05/25
- 15/20: gnu: python-poppy: Update to 1.1.1., guix-commits, 2023/05/25
- 17/20: gnu: python-ephem: Update to 4.1.4., guix-commits, 2023/05/25