2013-08-31 09:07:55 +00:00
|
|
|
# Template file for 'python-setuptools'
|
|
|
|
pkgname=python-setuptools
|
2015-04-16 12:10:32 +00:00
|
|
|
version=15.1
|
2015-03-22 21:44:32 +00:00
|
|
|
revision=1
|
2014-07-13 15:13:00 +00:00
|
|
|
noarch=yes
|
2014-10-05 10:56:00 +00:00
|
|
|
wrksrc="setuptools-${version}"
|
2014-07-13 15:13:00 +00:00
|
|
|
python_versions="2.7 3.4"
|
2014-06-17 10:00:00 +00:00
|
|
|
hostmakedepends="python-devel python3.4-devel"
|
2014-07-13 15:13:00 +00:00
|
|
|
depends="python"
|
2014-12-28 19:08:00 +00:00
|
|
|
pycompile_module="_markerlib pkg_resources setuptools easy_install.py"
|
2014-01-01 15:10:11 +00:00
|
|
|
provides="python-distribute-${version}_1"
|
|
|
|
replaces="python-distribute>=0"
|
2014-12-28 19:08:00 +00:00
|
|
|
short_desc="Easily build and distribute Python2 packages"
|
2014-06-17 10:00:00 +00:00
|
|
|
maintainer="Alessio Sergi <al3hex@gmail.com>"
|
2014-12-28 19:08:00 +00:00
|
|
|
homepage="https://bitbucket.org/pypa/setuptools"
|
2013-08-31 09:07:55 +00:00
|
|
|
license="PSF"
|
2014-10-05 10:56:00 +00:00
|
|
|
distfiles="${PYPI_SITE}/s/setuptools/setuptools-${version}.tar.gz"
|
2015-04-16 12:10:32 +00:00
|
|
|
checksum=cae3aac01a4370bf0f689ae1bfe0520142af749442698e5a20d08ea90a1037ee
|
2014-06-17 10:00:00 +00:00
|
|
|
|
2015-03-07 16:54:16 +00:00
|
|
|
pre_build() {
|
2014-12-28 19:08:00 +00:00
|
|
|
cp -a ${wrksrc} /tmp/setuptools-2.7
|
|
|
|
cp -a ${wrksrc} /tmp/setuptools-3.4
|
|
|
|
mv /tmp/setuptools-{2.7,3.4} ${wrksrc}
|
2015-03-07 16:54:16 +00:00
|
|
|
|
|
|
|
cd setuptools-3.4
|
2015-02-28 16:17:17 +00:00
|
|
|
sed -i 's,\(easy_install\) =,\13 =,' setup.py
|
2014-08-15 22:33:33 +00:00
|
|
|
sed -i 's,#!/usr/bin/env python,&3.4,' setuptools/command/easy_install.py
|
|
|
|
}
|
|
|
|
do_build() {
|
2015-03-07 16:54:16 +00:00
|
|
|
for pyver in $python_versions; do
|
|
|
|
cd ${wrksrc}/setuptools-${pyver}
|
|
|
|
python${pyver} setup.py build
|
|
|
|
done
|
2014-08-15 22:33:33 +00:00
|
|
|
}
|
|
|
|
do_install() {
|
2015-03-07 16:54:16 +00:00
|
|
|
for pyver in $python_versions; do
|
|
|
|
cd ${wrksrc}/setuptools-${pyver}
|
|
|
|
python${pyver} setup.py install --root=${DESTDIR}
|
|
|
|
done
|
2014-06-17 10:00:00 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
python3.4-setuptools_package() {
|
2014-07-13 15:13:00 +00:00
|
|
|
noarch=yes
|
2014-06-17 10:00:00 +00:00
|
|
|
depends="python3.4"
|
2014-06-18 09:50:00 +00:00
|
|
|
pycompile_version="3.4"
|
2014-12-28 19:08:00 +00:00
|
|
|
pycompile_module="_markerlib pkg_resources setuptools easy_install.py"
|
2014-08-15 22:33:33 +00:00
|
|
|
short_desc="${short_desc/Python2/Python3.4}"
|
2014-06-17 10:00:00 +00:00
|
|
|
provides="python3-distribute-${version}_1"
|
|
|
|
replaces="python3-distribute>=0"
|
|
|
|
pkg_install() {
|
2014-07-13 15:13:00 +00:00
|
|
|
vmove usr/bin/easy_install-3.4
|
|
|
|
vmove usr/bin/easy_install3
|
|
|
|
vmove usr/lib/python3.4
|
2014-06-17 10:00:00 +00:00
|
|
|
}
|
|
|
|
}
|