From df0b77b5a8bfb5566d26ab0758ad79c8716f20ca Mon Sep 17 00:00:00 2001 From: Alessio Sergi Date: Mon, 25 Apr 2016 01:59:39 +0200 Subject: [PATCH] python-setuptools: use alternatives --- srcpkgs/python-setuptools/template | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/srcpkgs/python-setuptools/template b/srcpkgs/python-setuptools/template index 835d6d3e3e8..a13db083c49 100644 --- a/srcpkgs/python-setuptools/template +++ b/srcpkgs/python-setuptools/template @@ -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 } }