python-setuptools: use alternatives
This commit is contained in:
parent
4f755d4cf2
commit
df0b77b5a8
|
@ -1,7 +1,7 @@
|
|||
# Template file for 'python-setuptools'
|
||||
pkgname=python-setuptools
|
||||
version=20.9.0
|
||||
revision=1
|
||||
revision=2
|
||||
noarch=yes
|
||||
wrksrc="setuptools-${version}"
|
||||
build_style=python-module
|
||||
|
@ -17,10 +17,10 @@ homepage="https://github.com/pypa/setuptools"
|
|||
license="MIT"
|
||||
distfiles="${PYPI_SITE}/s/setuptools/setuptools-${version}.tar.gz"
|
||||
checksum=2a360c782e067f84840315bcdcb5ed6c7c841cdedf6444f3232ab4a8b3204ac1
|
||||
alternatives="setuptools:easy_install:/usr/bin/easy_install2.7"
|
||||
|
||||
post_install() {
|
||||
rm -f ${DESTDIR}/usr/bin/easy_install
|
||||
ln -sf easy_install-2.7 ${DESTDIR}/usr/bin/easy_install
|
||||
rm -f ${DESTDIR}/usr/bin/easy_install-*
|
||||
}
|
||||
|
||||
python3.4-setuptools_package() {
|
||||
|
@ -31,8 +31,9 @@ python3.4-setuptools_package() {
|
|||
short_desc="${short_desc/Python2/Python3.4}"
|
||||
provides="python3-distribute-${version}_1"
|
||||
replaces="python3-distribute>=0"
|
||||
alternatives="setuptools:easy_install:/usr/bin/easy_install3.4"
|
||||
pkg_install() {
|
||||
vmove usr/bin/easy_install-3.4
|
||||
vmove usr/bin/easy_install3.4
|
||||
vmove usr/lib/python3.4
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue