From b1a7eca93b07dd51412f16a39fd9c4eba12c8981 Mon Sep 17 00:00:00 2001 From: Alessio Sergi Date: Mon, 25 Apr 2016 02:27:27 +0200 Subject: [PATCH] python-virtualenv: use alternatives --- srcpkgs/python-virtualenv/template | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/srcpkgs/python-virtualenv/template b/srcpkgs/python-virtualenv/template index 99ee3c0f8dc..8ec537af6e7 100644 --- a/srcpkgs/python-virtualenv/template +++ b/srcpkgs/python-virtualenv/template @@ -1,7 +1,7 @@ # Template file for 'python-virtualenv' pkgname=python-virtualenv version=15.0.1 -revision=1 +revision=2 noarch=yes wrksrc="virtualenv-${version}" build_style=python-module @@ -15,17 +15,14 @@ homepage="https://virtualenv.pypa.io/" license="MIT" distfiles="${PYPI_SITE}/v/virtualenv/virtualenv-${version}.tar.gz" checksum=1a74278b8adb383ce4c7619e33c753b1eb7b58dc1e449601c096ca4b76125f84 +alternatives="virtualenv:virtualenv:/usr/bin/virtualenv2.7" -pre_build() { - sed -i '/^#!/d' virtualenv.py -} post_install() { - cp -f ${DESTDIR}/usr/bin/virtualenv{,3.4} - replace_interpreter python ${DESTDIR}/usr/bin/virtualenv vlicense LICENSE.txt LICENSE } python3.4-virtualenv_package() { + alternatives="virtualenv:virtualenv:/usr/bin/virtualenv3.4" noarch=yes depends="python3.4-setuptools" pycompile_version="3.4"