mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-29 08:52:56 +02:00
python-pip: follow 'python' alternatives groups scheme
- restore pip2 symlink into the python-pip package - register 'pip3' alternatives group as well
This commit is contained in:
parent
8fc7bfb7d2
commit
97d7d691f4
1 changed files with 4 additions and 6 deletions
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'python-pip'
|
# Template file for 'python-pip'
|
||||||
pkgname=python-pip
|
pkgname=python-pip
|
||||||
version=8.1.1
|
version=8.1.1
|
||||||
revision=2
|
revision=3
|
||||||
noarch=yes
|
noarch=yes
|
||||||
wrksrc="pip-${version}"
|
wrksrc="pip-${version}"
|
||||||
build_style=python-module
|
build_style=python-module
|
||||||
|
@ -15,19 +15,17 @@ homepage="https://pip.pypa.io/"
|
||||||
license="MIT"
|
license="MIT"
|
||||||
distfiles="${PYPI_SITE}/p/pip/pip-${version}.tar.gz"
|
distfiles="${PYPI_SITE}/p/pip/pip-${version}.tar.gz"
|
||||||
checksum=3e78d3066aaeb633d185a57afdccf700aa2e660436b4af618bcb6ff0fa511798
|
checksum=3e78d3066aaeb633d185a57afdccf700aa2e660436b4af618bcb6ff0fa511798
|
||||||
|
alternatives="pip:pip:/usr/bin/pip2.7"
|
||||||
alternatives="
|
|
||||||
pip:pip:/usr/bin/pip2.7
|
|
||||||
pip:pip2:/usr/bin/pip2.7"
|
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
|
ln -sf pip2.7 ${DESTDIR}/usr/bin/pip2
|
||||||
vlicense LICENSE.txt LICENSE
|
vlicense LICENSE.txt LICENSE
|
||||||
}
|
}
|
||||||
|
|
||||||
python3.4-pip_package() {
|
python3.4-pip_package() {
|
||||||
alternatives="
|
alternatives="
|
||||||
pip:pip:/usr/bin/pip3.4
|
pip:pip:/usr/bin/pip3.4
|
||||||
pip:pip3:/usr/bin/pip3.4"
|
pip3:pip3:/usr/bin/pip3.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