python-virtualenv: use alternatives

This commit is contained in:
Alessio Sergi 2016-04-25 02:27:27 +02:00
parent 713ab74e6c
commit b1a7eca93b
1 changed files with 3 additions and 6 deletions

View File

@ -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"