mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-07 15:43:49 +02:00
python-virtualenv: use alternatives
This commit is contained in:
parent
713ab74e6c
commit
b1a7eca93b
1 changed files with 3 additions and 6 deletions
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'python-virtualenv'
|
# Template file for 'python-virtualenv'
|
||||||
pkgname=python-virtualenv
|
pkgname=python-virtualenv
|
||||||
version=15.0.1
|
version=15.0.1
|
||||||
revision=1
|
revision=2
|
||||||
noarch=yes
|
noarch=yes
|
||||||
wrksrc="virtualenv-${version}"
|
wrksrc="virtualenv-${version}"
|
||||||
build_style=python-module
|
build_style=python-module
|
||||||
|
@ -15,17 +15,14 @@ homepage="https://virtualenv.pypa.io/"
|
||||||
license="MIT"
|
license="MIT"
|
||||||
distfiles="${PYPI_SITE}/v/virtualenv/virtualenv-${version}.tar.gz"
|
distfiles="${PYPI_SITE}/v/virtualenv/virtualenv-${version}.tar.gz"
|
||||||
checksum=1a74278b8adb383ce4c7619e33c753b1eb7b58dc1e449601c096ca4b76125f84
|
checksum=1a74278b8adb383ce4c7619e33c753b1eb7b58dc1e449601c096ca4b76125f84
|
||||||
|
alternatives="virtualenv:virtualenv:/usr/bin/virtualenv2.7"
|
||||||
|
|
||||||
pre_build() {
|
|
||||||
sed -i '/^#!/d' virtualenv.py
|
|
||||||
}
|
|
||||||
post_install() {
|
post_install() {
|
||||||
cp -f ${DESTDIR}/usr/bin/virtualenv{,3.4}
|
|
||||||
replace_interpreter python ${DESTDIR}/usr/bin/virtualenv
|
|
||||||
vlicense LICENSE.txt LICENSE
|
vlicense LICENSE.txt LICENSE
|
||||||
}
|
}
|
||||||
|
|
||||||
python3.4-virtualenv_package() {
|
python3.4-virtualenv_package() {
|
||||||
|
alternatives="virtualenv:virtualenv:/usr/bin/virtualenv3.4"
|
||||||
noarch=yes
|
noarch=yes
|
||||||
depends="python3.4-setuptools"
|
depends="python3.4-setuptools"
|
||||||
pycompile_version="3.4"
|
pycompile_version="3.4"
|
||||||
|
|
Loading…
Add table
Reference in a new issue