diff options
Diffstat (limited to 'main')
-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" |