Skip to content

Commit

Permalink
py-pip: Add pip[23] as alternatives
Browse files Browse the repository at this point in the history
pip2 and pip3 are widely used aliases which make sure the specific
major version is used.

Patch from Bartosz Kosiorek via <#64>.

Closes #64

PKGREVISION++
  • Loading branch information
iamleot committed Jun 8, 2020
1 parent 8ee926c commit f0e9172
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions devel/py-pip/ALTERNATIVES
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
bin/pip @PREFIX@/bin/pip@PYVERSSUFFIX@
bin/pip@PYMAJORVERSION@ @PREFIX@/bin/pip@PYVERSSUFFIX@
6 changes: 5 additions & 1 deletion devel/py-pip/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# $NetBSD: Makefile,v 1.37 2020/06/01 16:27:17 adam Exp $
# $NetBSD: Makefile,v 1.38 2020/06/08 20:17:56 leot Exp $

DISTNAME= pip-20.1.1
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
PKGREVISION= 1
CATEGORIES= devel python
MASTER_SITES= ${MASTER_SITE_PYPI:=p/pip/}

Expand All @@ -16,6 +17,9 @@ REPLACE_PYTHON+= src/pip/_vendor/appdirs.py
REPLACE_PYTHON+= src/pip/_vendor/chardet/cli/chardetect.py
REPLACE_PYTHON+= src/pip/_vendor/requests/certs.py

.include "../../lang/python/pyversion.mk"
FILES_SUBST+= PYMAJORVERSION=${_PYTHON_VERSION:C/^([0-9]).*/\1/}

post-install:
cd ${DESTDIR}${PREFIX}/bin && ${RM} -f pip pip[2-3]

Expand Down

0 comments on commit f0e9172

Please sign in to comment.