Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2020-06-04 12:02:45 +0200
committerErich Eckner <git@eckner.net>2020-06-04 12:02:45 +0200
commitf2b29a12a94b82dd6ef695338e7e803a9b59ba1b (patch)
treeecba2700b4bc8a8399ac46e8f982d5b805f8f493
parent0a6bef33d19989a74e105960afe1fedf8ca51a60 (diff)
build-support/python-setuptools-bootstrap: drop python2 split package
-rw-r--r--build-support/python-setuptools-bootstrap/PKGBUILD27
1 files changed, 3 insertions, 24 deletions
diff --git a/build-support/python-setuptools-bootstrap/PKGBUILD b/build-support/python-setuptools-bootstrap/PKGBUILD
index ea915693..6107bf06 100644
--- a/build-support/python-setuptools-bootstrap/PKGBUILD
+++ b/build-support/python-setuptools-bootstrap/PKGBUILD
@@ -7,8 +7,7 @@
# heavily borrowed from python-setuptools' PKGBUILD
-pkgbase=python-setuptools-bootstrap
-pkgname=('python-setuptools-bootstrap' 'python2-setuptools-bootstrap')
+pkgname=python-setuptools-bootstrap
pkgver='47.1.1'
pkgrel='1'
epoch='1'
@@ -16,7 +15,7 @@ pkgdesc="Easily download, build, install, upgrade, and uninstall Python packages
arch=('any')
license=('PSF')
url="https://pypi.org/project/setuptools/"
-makedepends=('python' 'python2' 'git')
+makedepends=('python' 'git')
source=("$pkgbase-$pkgver.tar.gz::https://github.com/pypa/setuptools/archive/v$pkgver.tar.gz")
sha512sums=('fad8a81f4f5650248f56f4f656957f047caed724e696507d602246fbc002ff893776fef41b7861197e20210dbbc4f076558679dce0c37e5860fb3d4bcc1be130')
@@ -40,13 +39,8 @@ prepare() {
-e '/^def test_no_missing_dependencies/i @pytest.mark.xfail' \
-i setuptools-$pkgver/setuptools/tests/test_virtualenv.py
- cp -a setuptools-$pkgver{,-py2}
-
cd "$srcdir"/setuptools-$pkgver
sed -i -e "s|^#\!.*/usr/bin/env python|#!/usr/bin/env python3|" setuptools/command/easy_install.py
-
- cd "$srcdir"/setuptools-$pkgver-py2
- sed -i -e "s|^#\!.*/usr/bin/env python|#!/usr/bin/env python2|" setuptools/command/easy_install.py
}
build() {
@@ -54,12 +48,7 @@ build() {
python bootstrap.py
python setup.py build
- cd "$srcdir"/setuptools-$pkgver-py2
- python2 bootstrap.py
- python2 setup.py build
-}
-
-package_python-setuptools-bootstrap() {
+package() {
depends=("${_deps[@]/#/python-}")
provides=('python-distribute' "python-setuptools=${pkgver}")
replaces=('python-distribute')
@@ -67,13 +56,3 @@ package_python-setuptools-bootstrap() {
cd "$srcdir"/setuptools-$pkgver
python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 --skip-build
}
-
-package_python2-setuptools-bootstrap() {
- depends=("${_deps[@]/#/python2-}")
- provides=('python2-distribute' "python2-setuptools=${pkgver}")
- replaces=('python2-distribute')
-
- cd "$srcdir"/setuptools-$pkgver-py2
- python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 --skip-build
- rm "$pkgdir"/usr/bin/easy_install
-}