python-pipenv: fix alternatives.

This commit is contained in:
Leah Neukirchen 2019-02-12 11:46:14 +01:00
parent 6a9c0e7a2d
commit 96e08ac431

View file

@ -1,7 +1,7 @@
# Template file for 'python-pipenv'
pkgname=python-pipenv
version=2018.11.26
revision=1
revision=2
noarch=yes
wrksrc="pipenv-${version}"
build_style=python-module
@ -14,7 +14,10 @@ license="MIT"
homepage="https://github.com/pypa/pipenv"
distfiles="${PYPI_SITE}/p/pipenv/pipenv-${version}.tar.gz"
checksum=a673e606e8452185e9817a987572b55360f4d28b50831ef3b42ac3cab3fee846
alternatives="pip:pip:usr/bin/pip2 pip:pipenv-resolver:usr/bin/pipenv-resolver2"
alternatives="
pipenv:pipenv:usr/bin/pipenv2
pipenv:pipenv-resolver:usr/bin/pipenv-resolver2
"
post_install() {
vlicense LICENSE
@ -25,7 +28,10 @@ python3-pipenv_package() {
depends="python3"
pycompile_module="pipenv"
short_desc="${short_desc/Python2/Python3}"
alternatives="pip:pip:usr/bin/pip3 pip:pipenv-resolver:usr/bin/pipenv-resolver3"
alternatives="
pipenv:pipenv:usr/bin/pipenv3
pipenv:pipenv-resolver:usr/bin/pipenv-resolver3
"
pkg_install() {
vmove usr/bin/*3
vmove usr/lib/python3*