2013-08-31 09:07:55 +00:00
|
|
|
# Template file for 'python-setuptools'
|
|
|
|
pkgname=python-setuptools
|
2015-08-21 23:22:22 +00:00
|
|
|
version=18.2
|
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}"
|
2015-08-21 23:22:22 +00:00
|
|
|
build_style=python-module
|
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-08-21 23:22:22 +00:00
|
|
|
checksum=0994a58df27ea5dc523782a601357a2198b7493dcc99a30d51827a23585b5b1d
|
2014-06-17 10:00:00 +00:00
|
|
|
|
2015-03-07 16:54:16 +00:00
|
|
|
pre_build() {
|
2015-08-21 23:22:22 +00:00
|
|
|
sed -i '/^#!/d' setuptools/command/easy_install.py
|
2014-08-15 22:33:33 +00:00
|
|
|
}
|
2015-08-21 23:22:22 +00:00
|
|
|
post_install() {
|
|
|
|
rm -f ${DESTDIR}/usr/bin/easy_install
|
|
|
|
ln -sf easy_install-2.7 ${DESTDIR}/usr/bin/easy_install
|
|
|
|
ln -sf easy_install-3.4 ${DESTDIR}/usr/bin/easy_install3
|
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
|
|
|
}
|
|
|
|
}
|