From d579abd6cef66f0dff9da3d12fd2df03d30dc7bc Mon Sep 17 00:00:00 2001 From: Biswapriyo Nath Date: Wed, 17 May 2023 23:04:57 +0530 Subject: [PATCH] python-biopython: update to 1.81, port to pyproject --- mingw-w64-python-biopython/PKGBUILD | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/mingw-w64-python-biopython/PKGBUILD b/mingw-w64-python-biopython/PKGBUILD index 6d95de2b76..48341defde 100644 --- a/mingw-w64-python-biopython/PKGBUILD +++ b/mingw-w64-python-biopython/PKGBUILD @@ -6,7 +6,7 @@ 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=1.80 +pkgver=1.81 pkgrel=1 pkgdesc="A set of freely available tools for biological computation written in Python (mingw-w64)" arch=('any') @@ -15,26 +15,26 @@ license=('Biopython') url="https://biopython.org/" depends=("${MINGW_PACKAGE_PREFIX}-python" "${MINGW_PACKAGE_PREFIX}-python-numpy") -makedepends=("${MINGW_PACKAGE_PREFIX}-python-setuptools" "${MINGW_PACKAGE_PREFIX}-cc") +makedepends=("${MINGW_PACKAGE_PREFIX}-python-build" + "${MINGW_PACKAGE_PREFIX}-python-installer" + "${MINGW_PACKAGE_PREFIX}-python-setuptools" + "${MINGW_PACKAGE_PREFIX}-python-wheel" + "${MINGW_PACKAGE_PREFIX}-cc") source=(${_realname}-${pkgver}.tar.gz::https://biopython.org/DIST/${_realname}-${pkgver}.tar.gz) -sha256sums=('52805e9af88767e450e2df8113b5bc59e964e2e8a7bb803a83570bdbb51c0e43') - -prepare() { - cd "${srcdir}" - rm -rf "python-build-${CARCH}" | true - cp -r "${_realname}-${pkgver}" "python-build-${CARCH}" -} +sha256sums=('2cf38112b6d8415ad39d6a611988cd11fb5f33eb09346666a87263beba9614e0') build() { - cd "${srcdir}/python-build-${CARCH}" - ${MINGW_PREFIX}/bin/python setup.py build + cp -r "${_realname}-${pkgver}" "python-build-${MSYSTEM}" && cd "python-build-${MSYSTEM}" + ${MINGW_PREFIX}/bin/python -m build --wheel --skip-dependency-check --no-isolation } package() { - cd "${srcdir}/python-build-${CARCH}" + msg "Python install for ${MSYSTEM}" + cd "${srcdir}/python-build-${MSYSTEM}" - MSYS2_ARG_CONV_EXCL="--prefix=;--install-scripts=;--install-platlib=" \ - ${MINGW_PREFIX}/bin/python setup.py install --prefix=${MINGW_PREFIX} --root="${pkgdir}" -O1 --skip-build + MSYS2_ARG_CONV_EXCL="--prefix=" \ + ${MINGW_PREFIX}/bin/python -m installer --prefix=${MINGW_PREFIX} \ + --destdir="${pkgdir}" dist/*.whl install -Dm644 LICENSE.rst "${pkgdir}${MINGW_PREFIX}/share/licenses/python-${_realname}/LICENSE.rst" }