diff options
author | Leonardo Arena <rnalrd@alpinelinux.org> | 2017-12-23 15:35:07 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2017-12-23 15:38:13 +0000 |
commit | f875b163399c1c2aaa10c1f625ef389cc038e3da (patch) | |
tree | a4f4ca523ab64f5588e5c53df4959d1e9e7b823b /main/py-setuptools | |
parent | e2d705fe68bf35c4b2bf4fa2653c81be025451fd (diff) | |
download | aports-f875b163399c1c2aaa10c1f625ef389cc038e3da.tar.bz2 aports-f875b163399c1c2aaa10c1f625ef389cc038e3da.tar.xz |
Revert "main/py-setuptools: support for python3"
This reverts commit cb4892511d8e2b19aa36f1981b01f6981b541af2.
Diffstat (limited to 'main/py-setuptools')
-rw-r--r-- | main/py-setuptools/APKBUILD | 39 |
1 files changed, 7 insertions, 32 deletions
diff --git a/main/py-setuptools/APKBUILD b/main/py-setuptools/APKBUILD index 1bfd725352..d585d2abd3 100644 --- a/main/py-setuptools/APKBUILD +++ b/main/py-setuptools/APKBUILD @@ -3,14 +3,14 @@ pkgname=py-setuptools _pkgname=${pkgname#py-} pkgver=38.2.4 -pkgrel=0 +pkgrel=2 pkgdesc="A collection of enhancements to the Python distutils" url="https://pypi.python.org/pypi/setuptools" arch="noarch" license="PSF" -depends="" -makedepends="python2-dev python3-dev" -subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3" +provides="py2-setuptools=$pkgver-r$pkgrel" +depends="python2" +makedepends="python2-dev" options="!check" #no testsuite source="$_pkgname-$pkgver.tar.gz::https://github.com/pypa/$_pkgname/archive/v$pkgver.tar.gz" builddir="$srcdir/$_pkgname-$pkgver" @@ -19,40 +19,15 @@ build() { cd "$builddir" python2 bootstrap.py python2 setup.py build - python3 bootstrap.py - python3 setup.py build } package() { cd "$builddir" - mkdir -p "$pkgdir"/usr/bin -} - -_py2() { - replaces=$pkgname - provides="$pkgname-$pkgver-r$pkgrel" - _py python2 -} -_py3() { - replaces="python3" - _py python3 -} - -_py() { - local python="$1" - local pyver="${1:6:1}" - pkgdesc="$pkgdesc (for $python)" - depends="$depends $python" - install_if="$pkgname=$pkgver-r$pkgrel $python" + python2 setup.py install --prefix=/usr --root="$pkgdir" - cd "$builddir" - $python setup.py --quiet install --prefix=/usr --root="$subpkgdir" - #Add version suffix to executable files. - local path; for path in "$subpkgdir"/usr/bin/*; do - mv -f "$path" "${path%%}" - mv -f "${path%%}" "${path%%}-$pyver" - done + # we don't provide a non-suffixed easy_install + rm -f "$pkgdir"/usr/bin/easy_install } sha512sums="f06badd27f0b797482bf42314edb7ffde7fa80556825b0ef27b125a3fc876b9d2ec26bf2b540f88b39f52fb58536e762c5bef24d9a92115b5f5decdf01f00c6c setuptools-38.2.4.tar.gz" |