mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-12 04:02:19 +01:00
* avoid fork in global scope * added python-dev to makedepends * quote $pkgdir and $srcdir in case someone have spaces in the path
28 lines
936 B
Plaintext
28 lines
936 B
Plaintext
# Contributor: Andrew Manison <amanison@anselsystems.com>
|
|
# Maintainer:
|
|
pkgname=python26-setuptools
|
|
_pkgname=${pkgname#python26-}
|
|
pkgver=0.6c11
|
|
pkgrel=0
|
|
pkgdesc="setuptools is a collection of enhancements to the Python distutils"
|
|
url="http://pypi.python.org/pypi/setuptools"
|
|
license="PSF"
|
|
depends="python"
|
|
makedepends="python-dev"
|
|
install=
|
|
subpackages=""
|
|
source="http://pypi.python.org/packages/source/s/$_pkgname/$_pkgname-$pkgver.tar.gz"
|
|
|
|
build() {
|
|
cd "$srcdir"/$_pkgname-$pkgver
|
|
mkdir -p "$pkgdir"/usr/lib/python2.6/site-packages
|
|
python setup.py install --root="$pkgdir"
|
|
echo "/usr/lib/python2.6/site-packages/$_pkgname-$pkgver-py2.6.egg" > "$pkgdir"/usr/lib/python2.6/site-packages/$_pkgname.pth
|
|
|
|
# we don't provide a non-suffixed easy_install
|
|
echo "Removing non-suffixed easy_install ( $pkgdir/usr/bin/easy_install)"
|
|
rm "$pkgdir"/usr/bin/easy_install
|
|
}
|
|
|
|
md5sums="7df2a529a074f613b509fb44feefe74e setuptools-0.6c11.tar.gz"
|