void-packages/srcpkgs/python-setuptools/template
2014-07-13 17:13:00 +02:00

42 lines
1.3 KiB
Plaintext

# Template file for 'python-setuptools'
pkgname=python-setuptools
version=5.4.1
revision=1
noarch=yes
wrksrc="${pkgname#*-}-${version}"
build_style=python-module
python_versions="2.7 3.4"
hostmakedepends="python-devel python3.4-devel"
makedepends="${hostmakedepends}"
depends="python"
pycompile_module="easy_install.py pkg_resources.py _markerlib setuptools"
provides="python-distribute-${version}_1"
replaces="python-distribute>=0"
short_desc="Easily download, build, install, upgrade, and uninstall Python2 packages"
maintainer="Alessio Sergi <al3hex@gmail.com>"
homepage="http://pypi.python.org/pypi/setuptools"
license="PSF"
distfiles="http://pypi.python.org/packages/source/s/setuptools/setuptools-${version}.tar.gz"
checksum=41194dc283bd186d5a7825c16b89d88bee369a6c4c4c7494e84909933b6f63be
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
}
python3.4-setuptools_package() {
noarch=yes
depends="python3.4"
pycompile_version="3.4"
pycompile_module="easy_install.py pkg_resources.py _markerlib setuptools"
short_desc="${short_desc//Python2/Python3.4}"
provides="python3-distribute-${version}_1"
replaces="python3-distribute>=0"
pkg_install() {
vmove usr/bin/easy_install-3.4
vmove usr/bin/easy_install3
vmove usr/lib/python3.4
}
}