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


Commits:
ff069d60 by Rafael Fontenelle at 2024-09-19T01:08:26+00:00
 Use PEP-517 for building, and use SPDX license 
- - - - -


1 changed file:

- PKGBUILD


Changes:

=====================================
PKGBUILD
=====================================
@@ -9,9 +9,9 @@ pkgrel=5
 pkgdesc="General-purpose Python bindings for the HDF5 library (${_mpi} 
version)"
 arch=(x86_64)
 url="https://www.h5py.org/";
-license=(BSD)
+license=(BSD-3-Clause)
 depends=(hdf5-${_mpi} liblzf python-numpy python-mpi4py)
-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=(python-h5py)
 provides=(python-h5py)
@@ -37,7 +37,7 @@ prepare() {
 build() {
   export CC=mpicc
   cd ${_pkg}-${pkgver}
-  HDF5_MPI="ON" H5PY_SYSTEM_LZF=1 python setup.py build
+  HDF5_MPI="ON" H5PY_SYSTEM_LZF=1 python -m build --wheel --no-isolation
 }
 
 check() {
@@ -48,6 +48,6 @@ check() {
 
 package() {
   cd ${_pkg}-${pkgver}
-  HDF5_MPI="ON" python setup.py install --root="${pkgdir}" --skip-build 
--optimize=1
+  HDF5_MPI="ON" 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-openmpi/-/commit/ff069d605a2d3568646e5d444a7c8eac6717d804

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


Reply via email to