2013-08-31 11:07:55 +02:00
|
|
|
# Template file for 'python-setuptools'
|
|
|
|
pkgname=python-setuptools
|
2014-07-13 17:13:00 +02:00
|
|
|
version=5.4.1
|
2014-07-01 19:24:17 +02:00
|
|
|
revision=1
|
2014-07-13 17:13:00 +02:00
|
|
|
noarch=yes
|
|
|
|
wrksrc="${pkgname#*-}-${version}"
|
2013-08-31 11:07:55 +02:00
|
|
|
build_style=python-module
|
2014-07-13 17:13:00 +02:00
|
|
|
python_versions="2.7 3.4"
|
2014-06-17 12:00:00 +02:00
|
|
|
hostmakedepends="python-devel python3.4-devel"
|
|
|
|
makedepends="${hostmakedepends}"
|
2014-07-13 17:13:00 +02:00
|
|
|
depends="python"
|
2014-01-01 16:10:11 +01:00
|
|
|
pycompile_module="easy_install.py pkg_resources.py _markerlib setuptools"
|
|
|
|
provides="python-distribute-${version}_1"
|
|
|
|
replaces="python-distribute>=0"
|
2014-06-17 12:00:00 +02:00
|
|
|
short_desc="Easily download, build, install, upgrade, and uninstall Python2 packages"
|
|
|
|
maintainer="Alessio Sergi <al3hex@gmail.com>"
|
2013-08-31 11:07:55 +02:00
|
|
|
homepage="http://pypi.python.org/pypi/setuptools"
|
|
|
|
license="PSF"
|
2014-06-17 12:00:00 +02:00
|
|
|
distfiles="http://pypi.python.org/packages/source/s/setuptools/setuptools-${version}.tar.gz"
|
2014-07-13 17:13:00 +02:00
|
|
|
checksum=41194dc283bd186d5a7825c16b89d88bee369a6c4c4c7494e84909933b6f63be
|
2014-06-17 12:00:00 +02:00
|
|
|
|
|
|
|
post_install() {
|
|
|
|
rm -f ${DESTDIR}/usr/bin/easy_install
|
|
|
|
ln -sf easy_install-2.7 ${DESTDIR}/usr/bin/easy_install
|
2014-07-13 17:13:00 +02:00
|
|
|
ln -sf easy_install-3.4 ${DESTDIR}/usr/bin/easy_install3
|
2014-06-17 12:00:00 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
python3.4-setuptools_package() {
|
2014-07-13 17:13:00 +02:00
|
|
|
noarch=yes
|
2014-06-17 12:00:00 +02:00
|
|
|
depends="python3.4"
|
2014-06-18 11:50:00 +02:00
|
|
|
pycompile_version="3.4"
|
|
|
|
pycompile_module="easy_install.py pkg_resources.py _markerlib setuptools"
|
2014-06-17 12:00:00 +02:00
|
|
|
short_desc="${short_desc//Python2/Python3.4}"
|
|
|
|
provides="python3-distribute-${version}_1"
|
|
|
|
replaces="python3-distribute>=0"
|
|
|
|
pkg_install() {
|
2014-07-13 17:13:00 +02:00
|
|
|
vmove usr/bin/easy_install-3.4
|
|
|
|
vmove usr/bin/easy_install3
|
|
|
|
vmove usr/lib/python3.4
|
2014-06-17 12:00:00 +02:00
|
|
|
}
|
|
|
|
}
|