From 2da797e499aa584c45488c1b25b88c56177fd736 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Fri, 12 May 2023 18:50:06 +0200 Subject: build-support/python-bootstrap: added pythong-packaging --- build-support/python-bootstrap/PKGBUILD | 14 ++++++++++++-- build-support/python-bootstrap/add-packaging.patch | 15 +++++++++++++++ 2 files changed, 27 insertions(+), 2 deletions(-) create mode 100644 build-support/python-bootstrap/add-packaging.patch (limited to 'build-support') diff --git a/build-support/python-bootstrap/PKGBUILD b/build-support/python-bootstrap/PKGBUILD index 8f71ada5..6949646a 100644 --- a/build-support/python-bootstrap/PKGBUILD +++ b/build-support/python-bootstrap/PKGBUILD @@ -12,8 +12,12 @@ url="https://gitlab.archlinux.org/archlinux/python-bootstrap" depends=('python') makedepends=('git') provides=('python-build' 'python-flit' 'python-flit-core' 'python-installer''python-setuptools' 'python-wheel' 'python-tomli') -source=("git+https://gitlab.archlinux.org/archlinux/python-bootstrap/#branch=$pkgver" 'pep517.patch') -sha512sums=('SKIP' '24b7105c1f2537ed14a97dfc43002f66bdb3bf70b4d7512ae13d43cd752b30f7c87f945310601aedecba721f17ebd20a1e61ef7be3591f276e2336e4c5807e45') +source=("git+https://gitlab.archlinux.org/archlinux/python-bootstrap/#branch=$pkgver" +'pep517.patch' 'add-packaging.patch') +sha512sums=('SKIP' +'24b7105c1f2537ed14a97dfc43002f66bdb3bf70b4d7512ae13d43cd752b30f7c87f945310601aedecba721f17ebd20a1e61ef7be3591f276e2336e4c5807e45' +'0f514fc30fc62981633b6cf60ead7e128cf611e7c25b4d9a5fcdad57d507b4dd65ed43c0d69f0061f9a582c78cab6dd3370d79851d39335b3e69289b75d6bfeb' +) export SETUPTOOLS_INSTALL_WINDOWS_SPECIFIC_FILES=0 @@ -39,6 +43,11 @@ prepare() { cd ../.. git submodule add https://github.com/pypa/pyproject-hooks external/pyproject-hooks patch -Np1 -i "${srcdir}/pep517.patch" + git submodule add https://github.com/pypa/packaging external/packaging + cd external/packaging + git checkout d563917280d65a6ce2e622bd3d07438e1ee259f3 + cd ../.. + patch -Np1 -i "${srcdir}/add-packaging.patch" } build() { @@ -54,6 +63,7 @@ pyproject_hooks-1.0.0-py3-none-any.whl setuptools-67.0.0.post20230512-py3-none-any.whl tomli-2.0.1-py3-none-any.whl wheel-0.38.4-py3-none-any.whl +packaging-23.1-py3-none-any.whl ) package() { diff --git a/build-support/python-bootstrap/add-packaging.patch b/build-support/python-bootstrap/add-packaging.patch new file mode 100644 index 00000000..191979d2 --- /dev/null +++ b/build-support/python-bootstrap/add-packaging.patch @@ -0,0 +1,15 @@ +diff -rauN a/bootstrap/__init__.py b/bootstrap/__init__.py +--- a/bootstrap/__init__.py 2023-05-12 18:43:34.179377548 +0200 ++++ b/bootstrap/__init__.py 2023-05-12 18:44:34.389465858 +0200 +@@ -63,6 +63,11 @@ + EXTERNAL / 'pyproject-hooks' / 'src', + {'pyproject_hooks'}, + ), ++ 'packaging': Package( ++ EXTERNAL / 'packaging', ++ EXTERNAL / 'packaging' / 'src', ++ {'packaging'}, ++ ) + } + + EXTRA_PATH = [str(package.module_path) for package in PACKAGES.values()] -- cgit v1.2.3-70-g09d2