From ada18eb076a69e8a4498fd8ae9fef6a3db553b06 Mon Sep 17 00:00:00 2001 From: Christoph Reiter Date: Sat, 6 Jan 2024 12:25:17 +0100 Subject: [PATCH] python-lxml: Update to 5.0.1 --- mingw-w64-python-lxml/PKGBUILD | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/mingw-w64-python-lxml/PKGBUILD b/mingw-w64-python-lxml/PKGBUILD index 4e5c03b8ba..39ef12a486 100644 --- a/mingw-w64-python-lxml/PKGBUILD +++ b/mingw-w64-python-lxml/PKGBUILD @@ -4,8 +4,8 @@ _realname=lxml pkgbase=mingw-w64-python-${_realname} pkgname=("${MINGW_PACKAGE_PREFIX}-python-${_realname}") -pkgver=4.9.4 -pkgrel=2 +pkgver=5.0.1 +pkgrel=1 provides=("${MINGW_PACKAGE_PREFIX}-python3-${_realname}=${pkgver}" "${MINGW_PACKAGE_PREFIX}-python-${_realname}-docs") conflicts=("${MINGW_PACKAGE_PREFIX}-python3-${_realname}" @@ -31,17 +31,15 @@ makedepends=("${MINGW_PACKAGE_PREFIX}-python-build" "${MINGW_PACKAGE_PREFIX}-python-installer" "${MINGW_PACKAGE_PREFIX}-python-setuptools" "${MINGW_PACKAGE_PREFIX}-python-wheel" - "${MINGW_PACKAGE_PREFIX}-cython0" + "${MINGW_PACKAGE_PREFIX}-cython" "${MINGW_PACKAGE_PREFIX}-cc" "${MINGW_PACKAGE_PREFIX}-pkgconf") source=("https://pypi.org/packages/source/${_realname::1}/${_realname}/${_realname}-${pkgver}.tar.gz" "use-distutils-get_platform.patch" - "0001-setupinfo-fix-library-name.patch" - "https://github.com/lxml/lxml/commit/53eb0f82641cbfc968f0fb8ca6d81767fcfe1a5b.patch") -sha256sums=('b1541e50b78e15fa06a2670157a1962ef06591d4c998b998047fff5e3236880e' + "0001-setupinfo-fix-library-name.patch") +sha256sums=('4432a1d89a9b340bc6bd1201aef3ba03112f151d3f340d9218247dc0c85028ab' '6e58bd3072a6a77bf50c4c203beef589c97873e9902d4c8c6151abe71035f186' - '7d9e5380a8461e3c2bb4b8e0ece52011b26e3112b94b97e548c927524cfc93de' - '27b1051219a7036938065d67cc54a8bcc838e0de79d748ddff03fced83ea03ef') + '7d9e5380a8461e3c2bb4b8e0ece52011b26e3112b94b97e548c927524cfc93de') _apply_patch_with_msg() { for _patch in "$@" @@ -55,15 +53,16 @@ prepare() { cd "${_realname}-${pkgver}" _apply_patch_with_msg \ use-distutils-get_platform.patch \ - 0001-setupinfo-fix-library-name.patch \ - 53eb0f82641cbfc968f0fb8ca6d81767fcfe1a5b.patch + 0001-setupinfo-fix-library-name.patch } build() { rm -rf python-build-${MSYSTEM} | true cp -r "${_realname}-${pkgver}" "python-build-${MSYSTEM}" && cd "python-build-${MSYSTEM}" - CFLAGS+=" -Wno-incompatible-function-pointer-types" \ + # avoid clang32 OOMing by reducing memory usage + [[ ${MSYSTEM} == CLANG32 ]] && CFLAGS+=" -g0" + ${MINGW_PREFIX}/bin/python -m build --wheel --skip-dependency-check --no-isolation \ -C--build-option=--with-cython -C--build-option=--with-unicode-strings }