Commit 99d44fb0 authored by Natanael Copa's avatar Natanael Copa

main/py-setuptools: remove traces of python2.6

parent 3d47d424
......@@ -3,10 +3,10 @@
pkgname=py-setuptools
_pkgname=${pkgname#py-}
pkgver=0.6c11
pkgrel=2
pkgrel=3
pkgdesc="setuptools is a collection of enhancements to the Python distutils"
url="http://pypi.python.org/pypi/setuptools"
arch="all"
arch="noarch"
license="PSF"
depends="python"
makedepends="python-dev"
......@@ -16,10 +16,12 @@ source="http://pypi.python.org/packages/source/s/$_pkgname/$_pkgname-$pkgver.tar
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
python setup.py build || return 1
}
package() {
cd "$srcdir"/$_pkgname-$pkgver
python setup.py install --root="$pkgdir"
# 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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment