From 4c6f76d856f9787a44e308b7faf3e4ccefcb56be Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Fri, 12 May 2023 08:23:51 +0200 Subject: trying to activate the old way of python module bootstrapping --- .../disabled/python-pip-bootstrap/PKGBUILD | 26 ------------- .../disabled/python-pip-bootstrap/install.sh | 4 -- .../disabled/python-pip-bootstrap/install2.sh | 4 -- build-support/python-bootstrap/PKGBUILD | 45 ---------------------- build-support/python-pip-bootstrap/PKGBUILD | 18 +++++++++ build-support/python-pip-bootstrap/install.sh | 4 ++ build-support/python-pip-bootstrap/install2.sh | 4 ++ 7 files changed, 26 insertions(+), 79 deletions(-) delete mode 100644 build-support/disabled/python-pip-bootstrap/PKGBUILD delete mode 100644 build-support/disabled/python-pip-bootstrap/install.sh delete mode 100644 build-support/disabled/python-pip-bootstrap/install2.sh delete mode 100644 build-support/python-bootstrap/PKGBUILD create mode 100644 build-support/python-pip-bootstrap/PKGBUILD create mode 100644 build-support/python-pip-bootstrap/install.sh create mode 100644 build-support/python-pip-bootstrap/install2.sh (limited to 'build-support') diff --git a/build-support/disabled/python-pip-bootstrap/PKGBUILD b/build-support/disabled/python-pip-bootstrap/PKGBUILD deleted file mode 100644 index 7dc64258..00000000 --- a/build-support/disabled/python-pip-bootstrap/PKGBUILD +++ /dev/null @@ -1,26 +0,0 @@ -# Maintainer: Andreas Baumann - -pkgname=('python-pip-bootstrap' 'python2-pip-bootstrap') -pkgver=0.0.1 -pkgrel=1 -pkgdesc="bootstap pip and setuptools for bootstrapping python" -arch=(i486 'i686' 'x86_64' 'armv6h' 'armv7h') -url="https://bootstrap.pypa.io/" -source=("https://bootstrap.pypa.io/get-pip.py") -sha512sums=('ae0f0b2e41f435d80f955eb577f74fa9561ba283b8c7f65a5dd96270beebf7d2c220d107865e07a31e66d25dd33953cca852100b3f04bf8990626aa69c60fa98') - -package_python-pip-bootstrap() { - depends=('python') - install=install.sh - - mkdir -p "${pkgdir}/usr/bin" - cp "${srcdir}/get-pip.py" "${pkgdir}/usr/bin/." -} - -package_python2-pip-bootstrap() { - depends=('python2') - install=install2.sh - - mkdir -p "${pkgdir}/usr/bin" - cp "${srcdir}/get-pip.py" "${pkgdir}/usr/bin/get-pip2.py" -} diff --git a/build-support/disabled/python-pip-bootstrap/install.sh b/build-support/disabled/python-pip-bootstrap/install.sh deleted file mode 100644 index e81432e6..00000000 --- a/build-support/disabled/python-pip-bootstrap/install.sh +++ /dev/null @@ -1,4 +0,0 @@ -post_install() { - echo "Bootstrapping python pip, setuptools and wheel.." - python /usr/bin/get-pip.py -} diff --git a/build-support/disabled/python-pip-bootstrap/install2.sh b/build-support/disabled/python-pip-bootstrap/install2.sh deleted file mode 100644 index b6aa16fa..00000000 --- a/build-support/disabled/python-pip-bootstrap/install2.sh +++ /dev/null @@ -1,4 +0,0 @@ -post_install() { - echo "Bootstrapping python2 pip, setuptools and wheel.." - python2 /usr/bin/get-pip2.py -} diff --git a/build-support/python-bootstrap/PKGBUILD b/build-support/python-bootstrap/PKGBUILD deleted file mode 100644 index 2e42c71c..00000000 --- a/build-support/python-bootstrap/PKGBUILD +++ /dev/null @@ -1,45 +0,0 @@ -# Maintainer: Angel Velasquez -# Maintainer: Felix Yan -# Contributor: Eli Schwartz - -pkgname=python-bootstrap -pkgver=3.11 -pkgrel=1 -pkgdesc="Python Bootstrap" -arch=('any') -license=('PSF') -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") -sha512sums=('SKIP') - -export SETUPTOOLS_INSTALL_WINDOWS_SPECIFIC_FILES=0 - -prepare() { - cd "${srcdir}/${pkgname}" - git submodule init; git submodule update -} - -build() { - cd "${srcdir}/${pkgname}" - python -m bootstrap.build -} - -wheels=( - build-0.9.0-py3-none-any.whl - flit_core-3.7.1-py3-none-any.whl - installer-0.5.1-py3-none-any.whl - pep517-0.13.0-py3-none-any.whl - setuptools-58.3.0.post20230511-py3-none-any.whl - tomli-2.0.1-py3-none-any.whl - wheel-0.37.0-py2.py3-none-any.whl -) - -package() { - cd "${srcdir}/${pkgname}" - for wheel in "${wheels[@]}"; do - python -m bootstrap.install --destdir="$pkgdir" "dist/$wheel" - done -} diff --git a/build-support/python-pip-bootstrap/PKGBUILD b/build-support/python-pip-bootstrap/PKGBUILD new file mode 100644 index 00000000..4afb97a8 --- /dev/null +++ b/build-support/python-pip-bootstrap/PKGBUILD @@ -0,0 +1,18 @@ +# Maintainer: Andreas Baumann + +pkgname=('python-pip-bootstrap') +pkgver=0.0.1 +pkgrel=2 +pkgdesc="bootstap pip and setuptools for bootstrapping python" +arch=(i486 'i686' 'pentium4' 'x86_64' 'armv6h' 'armv7h') +url="https://bootstrap.pypa.io/" +source=("https://bootstrap.pypa.io/get-pip.py") +sha512sums=('ba6c35de136e769bc67cbd41417c62ed2d7eebf893473ae3a98c50fd130b53fc02d7d9de266323197e30a4895c826c301a205595e129fb9e90d294d8f0e53afd') + +package_python-pip-bootstrap() { + depends=('python') + install=install.sh + + mkdir -p "${pkgdir}/usr/bin" + cp "${srcdir}/get-pip.py" "${pkgdir}/usr/bin/." +} diff --git a/build-support/python-pip-bootstrap/install.sh b/build-support/python-pip-bootstrap/install.sh new file mode 100644 index 00000000..e81432e6 --- /dev/null +++ b/build-support/python-pip-bootstrap/install.sh @@ -0,0 +1,4 @@ +post_install() { + echo "Bootstrapping python pip, setuptools and wheel.." + python /usr/bin/get-pip.py +} diff --git a/build-support/python-pip-bootstrap/install2.sh b/build-support/python-pip-bootstrap/install2.sh new file mode 100644 index 00000000..b6aa16fa --- /dev/null +++ b/build-support/python-pip-bootstrap/install2.sh @@ -0,0 +1,4 @@ +post_install() { + echo "Bootstrapping python2 pip, setuptools and wheel.." + python2 /usr/bin/get-pip2.py +} -- cgit v1.2.3-54-g00ecf