From 881b3fbb045a0378fdbd45cd34d788dd104fc00a Mon Sep 17 00:00:00 2001 From: Mehdi Chinoune Date: Tue, 20 Jun 2023 12:18:30 +0000 Subject: [PATCH] python-h5py: update to 3.9.0 --- mingw-w64-python-h5py/PKGBUILD | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/mingw-w64-python-h5py/PKGBUILD b/mingw-w64-python-h5py/PKGBUILD index d986429f39..52c56f3b31 100644 --- a/mingw-w64-python-h5py/PKGBUILD +++ b/mingw-w64-python-h5py/PKGBUILD @@ -6,25 +6,28 @@ pkgname=("${MINGW_PACKAGE_PREFIX}-python-${_realname}") provides=("${MINGW_PACKAGE_PREFIX}-python3-${_realname}") conflicts=("${MINGW_PACKAGE_PREFIX}-python3-${_realname}") replaces=("${MINGW_PACKAGE_PREFIX}-python3-${_realname}") -pkgver=3.8.0 -pkgrel=3 +pkgver=3.9.0 +pkgrel=1 pkgdesc="General-purpose Python bindings for the HDF5 library (mingw-w64)" arch=('any') mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clangarm64' 'clang32') url="https://www.h5py.org/" license=('spdx:BSD-3-Clause') depends=("${MINGW_PACKAGE_PREFIX}-python-numpy" - "${MINGW_PACKAGE_PREFIX}-python-six" "${MINGW_PACKAGE_PREFIX}-hdf5") -makedepends=("${MINGW_PACKAGE_PREFIX}-python-setuptools" +makedepends=("${MINGW_PACKAGE_PREFIX}-python-build" + "${MINGW_PACKAGE_PREFIX}-python-installer" + "${MINGW_PACKAGE_PREFIX}-python-setuptools" + "${MINGW_PACKAGE_PREFIX}-python-wheel" + "${MINGW_PACKAGE_PREFIX}-python-oldest-supported-numpy" "${MINGW_PACKAGE_PREFIX}-cython" "${MINGW_PACKAGE_PREFIX}-cc" "${MINGW_PACKAGE_PREFIX}-python-pkgconfig" "${MINGW_PACKAGE_PREFIX}-pkg-config") -source=(https://github.com/h5py/h5py/releases/download/${pkgver}/h5py-${pkgver}.tar.gz +source=("https://pypi.org/packages/source/${_realname::1}/${_realname}/${_realname}-${pkgver}.tar.gz" 0001-multi-digit-SOVERSION.patch lzf_c.c.patch) -sha256sums=('6fead82f0c4000cf38d53f9c030780d81bfa0220218aee13b90b7701c937d95f' +sha256sums=('e604db6521c1e367c6bd7fad239c847f53cc46646f2d2651372d05ae5e95f817' 'b522515e3688acac0ca1a50265a2aa2009ec6df55f0d205b72e5dea5fd494705' '6d0126b881b5dcd637146d151341b72aa68eef760092272279072ec0bc4ceca9') @@ -53,18 +56,15 @@ build() { H5PY_SETUP_REQUIRES=0 \ HDF5_DIR=${MINGW_PREFIX} \ - MSYS2_ARG_CONV_EXCL="--prefix=;--install-scripts=;--install-platlib=" \ - ${MINGW_PREFIX}/bin/python setup.py build + ${MINGW_PREFIX}/bin/python -m build --wheel --skip-dependency-check --no-isolation } package() { cd "${srcdir}/python-build-${MSYSTEM}" - H5PY_SETUP_REQUIRES=0 \ - H5PY_ROS3=1 \ - MSYS2_ARG_CONV_EXCL="--prefix=;--install-scripts=;--install-platlib=" \ - ${MINGW_PREFIX}/bin/python setup.py install --skip-build \ - --prefix=${MINGW_PREFIX} --root=${pkgdir} --optimize=1 + MSYS2_ARG_CONV_EXCL="--prefix=" \ + ${MINGW_PREFIX}/bin/python -m installer --prefix=${MINGW_PREFIX} \ + --destdir="${pkgdir}" dist/*.whl install -Dm644 licenses/license.txt \ "${pkgdir}${MINGW_PREFIX}/share/licenses/python-${_realname}/LICENSE.txt"