aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2020-02-29 05:40:14 -0300
committerLeo <thinkabit.ukim@gmail.com>2020-02-29 05:57:01 -0300
commit98a81282bb50ce4257f6b8374d4ae71d5573bf02 (patch)
treea8798ef9054e88ff95c5ae82cdf74c5ffe7c5fe2
parentf9ef1aaa3c54a1d34e9c8febf49a3506dcfa0a70 (diff)
downloadaports-98a81282bb50ce4257f6b8374d4ae71d5573bf02.tar.gz
aports-98a81282bb50ce4257f6b8374d4ae71d5573bf02.tar.bz2
aports-98a81282bb50ce4257f6b8374d4ae71d5573bf02.tar.xz
main/py3-setuptools: new aport
https://pypi.python.org/pypi/setuptools Collection of enhancements to the Python3 distutils
-rw-r--r--main/py3-setuptools/APKBUILD46
1 files changed, 46 insertions, 0 deletions
diff --git a/main/py3-setuptools/APKBUILD b/main/py3-setuptools/APKBUILD
new file mode 100644
index 0000000000..c9866eb687
--- /dev/null
+++ b/main/py3-setuptools/APKBUILD
@@ -0,0 +1,46 @@
+# Contributor: Andrew Manison <amanison@anselsystems.com>
+# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
+# Contributor: Leo <thinkabit.ukim@gmail.com>
+# Maintainer: Leo <thinkabit.ukim@gmail.com>
+pkgname=py3-setuptools
+_pkgname=${pkgname#py3-}
+pkgver=45.2.0
+pkgrel=0
+pkgdesc="Collection of enhancements to the Python3 distutils"
+options="!check" # Tests require packages out of main/
+url="https://pypi.python.org/pypi/setuptools"
+arch="noarch"
+license="MIT"
+depends="python3"
+source="$_pkgname-$pkgver.tar.gz::https://github.com/pypa/$_pkgname/archive/v$pkgver.tar.gz"
+builddir="$srcdir"/$_pkgname-$pkgver
+
+provides="py-setuptools=$pkgver-r$pkgrel" # Backwards compatibility
+replaces="py-setuptools" # Backwards compatiblity
+
+export SETUPTOOLS_INSTALL_WINDOWS_SPECIFIC_FILES=0
+
+prepare() {
+ default_prepare
+
+ # Fix post-release tag
+ sed -e '/tag_build = .post/d' \
+ -e '/tag_date = 1/d' \
+ -i setup.cfg
+
+ # Fix shebang
+ sed -i -e "s|^#\!.*/usr/bin/env python|#!/usr/bin/env python3|" setuptools/command/easy_install.py
+
+ python3 bootstrap.py
+}
+
+build() {
+ python3 setup.py build
+}
+
+package() {
+ python3 setup.py install --prefix=/usr --root="$pkgdir"
+ # we don't provide a non-suffixed easy_install
+ rm -f "$pkgdir"/usr/bin/easy_install
+}
+sha512sums="68a2b600e67dfd1ba25efadd852ed99fff3073ee73959b183ffd8b5c44935628a9eff2f56ac921f4d8d903a389f167ddc2295f031b9b0f7fa9f91970516e4658 setuptools-45.2.0.tar.gz"