diff --git a/mingw-w64-python-gssapi/001-use-distutils-from-stdlib.patch b/mingw-w64-python-gssapi/001-use-distutils-from-stdlib.patch new file mode 100644 index 0000000000..c219dd8c4f --- /dev/null +++ b/mingw-w64-python-gssapi/001-use-distutils-from-stdlib.patch @@ -0,0 +1,14 @@ +--- a/setup.py ++++ b/setup.py +@@ -9,11 +9,6 @@ + import shutil + import shlex + +-# Enables the vendored distutils in setuptools over the stdlib one to avoid +-# the deprecation warning. Must be done before importing setuptools, +-# setuptools also must be imported before distutils. +-# https://github.com/pypa/setuptools/blob/main/docs/deprecated/distutils-legacy.rst +-os.environ['SETUPTOOLS_USE_DISTUTILS'] = 'local' + + from setuptools import setup # noqa: E402 + from setuptools import Distribution # noqa: E402 diff --git a/mingw-w64-python-gssapi/PKGBUILD b/mingw-w64-python-gssapi/PKGBUILD index 982f3746d0..a19ef43c3f 100644 --- a/mingw-w64-python-gssapi/PKGBUILD +++ b/mingw-w64-python-gssapi/PKGBUILD @@ -6,8 +6,8 @@ pkgname=("${MINGW_PACKAGE_PREFIX}-${_realname}") provides=("${MINGW_PACKAGE_PREFIX}-python3-${_realname}") conflicts=("${MINGW_PACKAGE_PREFIX}-python3-${_realname}") replaces=("${MINGW_PACKAGE_PREFIX}-python3-${_realname}") -pkgver=1.6.5 -pkgrel=2 +pkgver=1.7.3 +pkgrel=1 pkgdesc="A python interface to RFC 2743/2744 (plus common extensions) (mingw-w64)" arch=('any') mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32') @@ -21,12 +21,15 @@ depends=("${MINGW_PACKAGE_PREFIX}-python" makedepends=("${MINGW_PACKAGE_PREFIX}-python-setuptools" "${MINGW_PACKAGE_PREFIX}-cc") options=('staticlibs' 'strip' '!debug') -source=("${_realname}-${pkgver}.tar.gz::https://github.com/pythongssapi/python-gssapi/releases/download/v${pkgver}/${_realname}-${pkgver}.tar.gz") -sha512sums=('81e32bd22f4fee6e6ce2e28b60053abd21e5691f5b9083c07437e42547bdd8e55e36b083546a14baa831e2cbe005a6145d09e33815297ddbdab4e1b5a3966a21') +source=("${_realname}-${pkgver}.tar.gz::https://github.com/pythongssapi/python-gssapi/releases/download/v${pkgver}/${_realname}-${pkgver}.tar.gz" + 001-use-distutils-from-stdlib.patch) +sha256sums=('0e56ee44222d2df37c337c376973861af300a7f86b8ff9dc199c2b3349a3d204' + 'f042e9e98a8be163e15b815d058d82e787afc1f382296693f560a4b0fce4b882') export MSYS=winsymlinks:lnk prepare() { cd "${srcdir}/${_realname}-${pkgver}" + patch -p1 -i "${srcdir}"/001-use-distutils-from-stdlib.patch sed -i -e 's+elif winkrb_path:+elif False:+g' setup.py sed -i -e 's+gssapi/gssapi.h+gss.h+g' gssapi/raw/python_gssapi.h sed -i -e 's+gssapi/gssapi.h+gss.h+g' gssapi/raw/python_gssapi_ext.h