Skip to content

Commit

Permalink
python-lxml: Update to 5.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
lazka committed Jan 6, 2024
1 parent cdebd4d commit ada18eb
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions mingw-w64-python-lxml/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand All @@ -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 "$@"
Expand All @@ -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
}
Expand Down

0 comments on commit ada18eb

Please sign in to comment.