217e7d31f2
After more than a year the switch to python3 packages, it is time to say them goodbye. So long, and thanks for all the fish.
34 lines
990 B
Bash
34 lines
990 B
Bash
# Template file for 'python-virtualenv'
|
|
pkgname=python-virtualenv
|
|
version=15.1.0
|
|
revision=2
|
|
noarch=yes
|
|
wrksrc="virtualenv-${version}"
|
|
build_style=python-module
|
|
hostmakedepends="python-setuptools python3-setuptools"
|
|
depends="python-setuptools"
|
|
pycompile_module="virtualenv.py"
|
|
short_desc="Virtual Python2 environment builder"
|
|
maintainer="Alessio Sergi <al3hex@gmail.com>"
|
|
homepage="https://virtualenv.pypa.io/"
|
|
license="MIT"
|
|
distfiles="${PYPI_SITE}/v/virtualenv/virtualenv-${version}.tar.gz"
|
|
checksum=02f8102c2436bb03b3ee6dede1919d1dac8a427541652e5ec95171ec8adbc93a
|
|
alternatives="virtualenv:virtualenv:/usr/bin/virtualenv2"
|
|
|
|
post_install() {
|
|
vlicense LICENSE.txt LICENSE
|
|
}
|
|
|
|
python3-virtualenv_package() {
|
|
noarch=yes
|
|
depends="python3-setuptools"
|
|
pycompile_module="virtualenv.py"
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
alternatives="virtualenv:virtualenv:/usr/bin/virtualenv3"
|
|
pkg_install() {
|
|
vmove usr/bin/virtualenv3
|
|
vmove usr/lib/python3*
|
|
vlicense LICENSE.txt LICENSE
|
|
}
|
|
}
|