From 24a086b42c4b2b57d7b2e11c7c6c2082b6cb5ad4 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Mon, 22 Feb 2021 07:22:34 +0000 Subject: Revert "community/py2-setuptools: remove" py2-setuptools is needed by chromium This reverts commit 5cc1c8754015536c1d2e60eba4d3d67a99c8dd16. --- community/py2-setuptools/APKBUILD | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 community/py2-setuptools/APKBUILD diff --git a/community/py2-setuptools/APKBUILD b/community/py2-setuptools/APKBUILD new file mode 100644 index 00000000000..6e82df39f9e --- /dev/null +++ b/community/py2-setuptools/APKBUILD @@ -0,0 +1,32 @@ +# Contributor: Andrew Manison +# Maintainer: Fabian Affolter +pkgname=py2-setuptools +_pkgname=${pkgname#py2-} +pkgver=44.0.0 +pkgrel=0 +pkgdesc="Collection of enhancements to the Python2 distutils" +url="https://pypi.python.org/pypi/setuptools" +arch="noarch" +license="MIT" +depends="python2" +options="!check" #no testsuite +source="$_pkgname-$pkgver.tar.gz::https://github.com/pypa/$_pkgname/archive/v$pkgver.tar.gz" +builddir="$srcdir/$_pkgname-$pkgver" + +prepare() { + default_prepare + + python2 bootstrap.py +} + +build() { + python2 setup.py build +} + +package() { + python2 setup.py install --prefix=/usr --root="$pkgdir" + # we don't provide a non-suffixed easy_install + rm -f "$pkgdir"/usr/bin/easy_install +} + +sha512sums="48febee840612a56c7f4cb0bc3983bf61a6a08c53dfcb95403f6631061481ba391fc0472d608ea6c0078fda8bcc7bb9f6dd8b73d473f5e4349d6eaeb2ab0050b setuptools-44.0.0.tar.gz" -- cgit v1.2.3