- restore pip2 symlink into the python-pip package - register 'pip3' alternatives group as well
39 lines
1 KiB
Bash
39 lines
1 KiB
Bash
# Template file for 'python-pip'
|
|
pkgname=python-pip
|
|
version=8.1.1
|
|
revision=3
|
|
noarch=yes
|
|
wrksrc="pip-${version}"
|
|
build_style=python-module
|
|
python_versions="2.7 3.4"
|
|
hostmakedepends="python-setuptools python3.4-setuptools"
|
|
depends="python-setuptools"
|
|
pycompile_module="pip"
|
|
short_desc="The PyPA recommended tool for installing PyPI packages (Python2)"
|
|
maintainer="Alessio Sergi <al3hex@gmail.com>"
|
|
homepage="https://pip.pypa.io/"
|
|
license="MIT"
|
|
distfiles="${PYPI_SITE}/p/pip/pip-${version}.tar.gz"
|
|
checksum=3e78d3066aaeb633d185a57afdccf700aa2e660436b4af618bcb6ff0fa511798
|
|
alternatives="pip:pip:/usr/bin/pip2.7"
|
|
|
|
post_install() {
|
|
ln -sf pip2.7 ${DESTDIR}/usr/bin/pip2
|
|
vlicense LICENSE.txt LICENSE
|
|
}
|
|
|
|
python3.4-pip_package() {
|
|
alternatives="
|
|
pip:pip:/usr/bin/pip3.4
|
|
pip3:pip3:/usr/bin/pip3.4"
|
|
noarch=yes
|
|
depends="python3.4-setuptools"
|
|
pycompile_version="3.4"
|
|
pycompile_module="pip"
|
|
short_desc="${short_desc/Python2/Python3.4}"
|
|
pkg_install() {
|
|
vmove usr/bin/pip3.4
|
|
vmove usr/lib/python3.4
|
|
vlicense LICENSE.txt LICENSE
|
|
}
|
|
}
|