aboutsummaryrefslogtreecommitdiffstats
path: root/main/py-setuptools
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2016-10-01 17:58:00 +0200
committerJakub Jirutka <jakub@jirutka.cz>2016-10-01 18:16:32 +0200
commit4a198571f822d39870b0541c9cb26ed89970aec5 (patch)
tree975aaaa3330066b94bf3995e9c5010f0991d1c78 /main/py-setuptools
parent2729efc423e0af953741a5efec81f0a642c0f579 (diff)
downloadaports-4a198571f822d39870b0541c9cb26ed89970aec5.tar.bz2
aports-4a198571f822d39870b0541c9cb26ed89970aec5.tar.xz
main/py-setuptools: add provides=py2-setuptools and s/python/python2/
Diffstat (limited to 'main/py-setuptools')
-rw-r--r--main/py-setuptools/APKBUILD11
1 files changed, 6 insertions, 5 deletions
diff --git a/main/py-setuptools/APKBUILD b/main/py-setuptools/APKBUILD
index a863d22766..ccea69cd49 100644
--- a/main/py-setuptools/APKBUILD
+++ b/main/py-setuptools/APKBUILD
@@ -8,20 +8,21 @@ pkgdesc="A collection of enhancements to the Python distutils"
url="http://pypi.python.org/pypi/setuptools"
arch="noarch"
license="PSF"
-depends="python"
-makedepends="python-dev"
+provides="py2-setuptools"
+depends="python2"
+makedepends="python2-dev"
source="${_pkgname}-${pkgver}.tar.gz::https://github.com/pypa/${_pkgname}/archive/v${pkgver}.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
build() {
cd "$builddir"
- python bootstrap.py || return 1
- python setup.py build || return 1
+ python2 bootstrap.py || return 1
+ python2 setup.py build || return 1
}
package() {
cd "$builddir"
- python setup.py install --prefix=/usr --root="$pkgdir" || return 1
+ python2 setup.py install --prefix=/usr --root="$pkgdir" || return 1
# we don't provide a non-suffixed easy_install
rm -f "$pkgdir"/usr/bin/easy_install || return 1