Antonio Rojas pushed to branch main at Arch Linux / Packaging / Packages / 
python-h5py


Commits:
f62aa80a by Rafael Fontenelle at 2024-09-19T00:56:28+00:00
Use PEP-517 for building, and use SPDX license
- - - - -


1 changed file:

- PKGBUILD


Changes:

=====================================
PKGBUILD
=====================================
@@ -11,9 +11,9 @@ pkgrel=5
 pkgdesc="General-purpose Python bindings for the HDF5 library"
 arch=(x86_64)
 url="https://www.h5py.org/";
-license=(BSD)
+license=(BSD-3-Clause)
 depends=(hdf5 liblzf python-numpy)
-makedepends=(cython python-pkgconfig python-setuptools)
+makedepends=(cython python-pkgconfig python-build python-installer 
python-wheel python-setuptools)
 checkdepends=(python-pytest python-pytest-mpi python-pytables)
 conflicts=(hdf5-openmpi)
 
source=(https://files.pythonhosted.org/packages/source/h/${_pkg}/${_pkg}-${pkgver}.tar.gz
@@ -36,7 +36,7 @@ prepare() {
 
 build() {
   cd ${_pkg}-${pkgver}
-  H5PY_SYSTEM_LZF=1 python setup.py build
+  H5PY_SYSTEM_LZF=1 python -m build --wheel --no-isolation
 }
 
 check() {
@@ -47,6 +47,6 @@ check() {
 
 package() {
   cd ${_pkg}-${pkgver}
-  python setup.py install --root="${pkgdir}" --skip-build --optimize=1
+  python -m installer --destdir="$pkgdir" dist/*.whl
   install -Dm644 licenses/license.txt -t 
"${pkgdir}"/usr/share/licenses/${pkgname}/
-}
+}
\ No newline at end of file



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-h5py/-/commit/f62aa80a7e0761cb50fe33d44d6e07ad0ef81fc5

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-h5py/-/commit/f62aa80a7e0761cb50fe33d44d6e07ad0ef81fc5
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to