python3-pip: update to 21.1.

Install entrypoint script as `pip3` and make `pip` a symlink.

Closes #30075.
This commit is contained in:
Andrew J. Hesford 2021-04-25 09:57:01 -04:00
parent ff430634cb
commit 7bec508cab
2 changed files with 16 additions and 19 deletions

View File

@ -1,13 +1,11 @@
--- setup.py.orig 2021-01-30 17:47:39.874134606 -0500 --- setup.py
+++ setup.py 2021-01-30 17:47:54.435139352 -0500 +++ setup.py
@@ -74,10 +74,6 @@ @@ -70,8 +70,6 @@
entry_points={ entry_points={
"console_scripts": [ "console_scripts": [
"pip=pip._internal.cli.main:main", - "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[0]),
- "pip{}.{}=pip._internal.cli.main:main".format( - "pip{}.{}=pip._internal.cli.main:main".format(*sys.version_info[:2]),
- *sys.version_info[:2] ],
- ), },
], zip_safe=False,
},

View File

@ -1,6 +1,6 @@
# Template file for 'python3-pip' # Template file for 'python3-pip'
pkgname=python3-pip pkgname=python3-pip
version=21.0.1 version=21.1
revision=1 revision=1
wrksrc="pip-${version}" wrksrc="pip-${version}"
build_style=python3-module build_style=python3-module
@ -12,12 +12,11 @@ license="MIT"
homepage="https://pip.pypa.io/" homepage="https://pip.pypa.io/"
changelog="https://raw.githubusercontent.com/pypa/pip/master/NEWS.rst" changelog="https://raw.githubusercontent.com/pypa/pip/master/NEWS.rst"
distfiles="${PYPI_SITE}/p/pip/pip-${version}.tar.gz" distfiles="${PYPI_SITE}/p/pip/pip-${version}.tar.gz"
checksum=99bbde183ec5ec037318e774b0d8ae0a64352fe53b2c7fd630be1d07e94f41e5 checksum=a810bf07c3723a28621c29abe8e34429fa082c337f89aea9a795865416b66d3e
# Tests have unpackaged dependencies
do_check() { make_check=no
: tests have unpackaged dependencies
}
post_install() { post_install() {
vlicense LICENSE.txt vlicense LICENSE.txt
ln -s pip3 "${DESTDIR}/usr/bin/pip"
} }