python-pip: split package

New package: python3-pip-21.0.1
This commit is contained in:
Andrew J. Hesford 2021-01-30 17:54:15 -05:00
parent 7c8f4c06e6
commit 375b91ebcd
5 changed files with 43 additions and 17 deletions

View file

@ -1,10 +1,10 @@
# Template file for 'python-pip'
pkgname=python-pip
version=20.3.3
version=20.3.4
revision=1
wrksrc="pip-${version}"
build_style=python-module
hostmakedepends="python-setuptools python3-setuptools"
build_style=python2-module
hostmakedepends="python-setuptools"
depends="python-setuptools"
short_desc="PyPA recommended tool for installing PyPI packages (Python2)"
maintainer="Alessio Sergi <al3hex@gmail.com>"
@ -12,19 +12,9 @@ license="MIT"
homepage="https://pip.pypa.io/"
changelog="https://raw.githubusercontent.com/pypa/pip/master/NEWS.rst"
distfiles="${PYPI_SITE}/p/pip/pip-${version}.tar.gz"
checksum=79c1ac8a9dccbec8752761cb5a2df833224263ca661477a2a9ed03ddf4e0e3ba
checksum=6773934e5f5fc3eaa8c5a44949b5b924fc122daa0a8aa9f80c835b4ca2a543fc
post_install() {
vlicense LICENSE.txt
}
python3-pip_package() {
depends="python3-setuptools"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/bin/pip3
mv ${PKGDESTDIR}/usr/bin/pip{3,}
vmove ${py3_lib}
vlicense LICENSE.txt
}
mv ${DESTDIR}/usr/bin/pip{,2}
}

View file

@ -1 +1,2 @@
pattern='pip-\K[0-9.]+(?=.tar.gz)'
# Support for Python 2 was dropped in pip >= 21
pattern='pip-\K20\.[0-9.]+(?=.tar.gz)'

View file

@ -1 +0,0 @@
python-pip

View file

@ -0,0 +1,13 @@
--- setup.py.orig 2021-01-30 17:47:39.874134606 -0500
+++ setup.py 2021-01-30 17:47:54.435139352 -0500
@@ -74,10 +74,6 @@
entry_points={
"console_scripts": [
"pip=pip._internal.cli.main:main",
- "pip{}=pip._internal.cli.main:main".format(sys.version_info[0]),
- "pip{}.{}=pip._internal.cli.main:main".format(
- *sys.version_info[:2]
- ),
],
},

View file

@ -0,0 +1,23 @@
# Template file for 'python3-pip'
pkgname=python3-pip
version=21.0.1
revision=1
wrksrc="pip-${version}"
build_style=python3-module
hostmakedepends="python3-setuptools"
depends="python3-setuptools"
short_desc="PyPA recommended tool for installing PyPI packages (Python3)"
maintainer="Andrew J. Hesford <ajh@sideband.org>"
license="MIT"
homepage="https://pip.pypa.io/"
changelog="https://raw.githubusercontent.com/pypa/pip/master/NEWS.rst"
distfiles="${PYPI_SITE}/p/pip/pip-${version}.tar.gz"
checksum=99bbde183ec5ec037318e774b0d8ae0a64352fe53b2c7fd630be1d07e94f41e5
do_check() {
: tests have unpackaged dependencies
}
post_install() {
vlicense LICENSE.txt
}