python-setuptools: update to 12.2
This commit is contained in:
parent
bc51025426
commit
7c55266d44
|
@ -1,6 +1,6 @@
|
|||
# Template file for 'python-setuptools'
|
||||
pkgname=python-setuptools
|
||||
version=12.1
|
||||
version=12.2
|
||||
revision=1
|
||||
noarch=yes
|
||||
wrksrc="setuptools-${version}"
|
||||
|
@ -15,20 +15,18 @@ maintainer="Alessio Sergi <al3hex@gmail.com>"
|
|||
homepage="https://bitbucket.org/pypa/setuptools"
|
||||
license="PSF"
|
||||
distfiles="${PYPI_SITE}/s/setuptools/setuptools-${version}.tar.gz"
|
||||
checksum=faa7474d8939b25574a6caf0fbebf294c5f9c34a3d2c31cb1a92df10f5996e11
|
||||
checksum=35217b462c11589754bee08688313b4dfc46c752857c67b2663b2cf9eab60144
|
||||
|
||||
post_extract() {
|
||||
cp -a ${wrksrc} /tmp/setuptools-2.7
|
||||
cp -a ${wrksrc} /tmp/setuptools-3.4
|
||||
mv /tmp/setuptools-{2.7,3.4} ${wrksrc}
|
||||
}
|
||||
|
||||
pre_build() {
|
||||
cd ${wrksrc}/setuptools-3.4
|
||||
sed -i 's,easy_install =,easy_install3 =,' setup.py
|
||||
sed -i 's,#!/usr/bin/env python,&3.4,' setuptools/command/easy_install.py
|
||||
}
|
||||
|
||||
do_build() {
|
||||
cd ${wrksrc}/setuptools-2.7
|
||||
python setup.py build
|
||||
|
@ -36,7 +34,6 @@ do_build() {
|
|||
cd ${wrksrc}/setuptools-3.4
|
||||
python3.4 setup.py build
|
||||
}
|
||||
|
||||
do_install() {
|
||||
cd ${wrksrc}/setuptools-2.7
|
||||
python setup.py install --root=${DESTDIR}
|
||||
|
|
Loading…
Reference in New Issue