From 7bec508cab92af947174b54df5a62b490e449818 Mon Sep 17 00:00:00 2001 From: "Andrew J. Hesford" Date: Sun, 25 Apr 2021 09:57:01 -0400 Subject: [PATCH] python3-pip: update to 21.1. Install entrypoint script as `pip3` and make `pip` a symlink. Closes #30075. --- .../patches/no-versioned-pip.patch | 24 +++++++++---------- srcpkgs/python3-pip/template | 11 ++++----- 2 files changed, 16 insertions(+), 19 deletions(-) diff --git a/srcpkgs/python3-pip/patches/no-versioned-pip.patch b/srcpkgs/python3-pip/patches/no-versioned-pip.patch index b3a50bb2c13..7fb56fda667 100644 --- a/srcpkgs/python3-pip/patches/no-versioned-pip.patch +++ b/srcpkgs/python3-pip/patches/no-versioned-pip.patch @@ -1,13 +1,11 @@ ---- 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] -- ), - ], - }, - +--- setup.py ++++ setup.py +@@ -70,8 +70,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]), + ], + }, + zip_safe=False, diff --git a/srcpkgs/python3-pip/template b/srcpkgs/python3-pip/template index d0a3a1d7516..0e885d68f04 100644 --- a/srcpkgs/python3-pip/template +++ b/srcpkgs/python3-pip/template @@ -1,6 +1,6 @@ # Template file for 'python3-pip' pkgname=python3-pip -version=21.0.1 +version=21.1 revision=1 wrksrc="pip-${version}" build_style=python3-module @@ -12,12 +12,11 @@ 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 -} +checksum=a810bf07c3723a28621c29abe8e34429fa082c337f89aea9a795865416b66d3e +# Tests have unpackaged dependencies +make_check=no post_install() { vlicense LICENSE.txt + ln -s pip3 "${DESTDIR}/usr/bin/pip" }