pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/devel/py-pip



Module Name:    pkgsrc
Committed By:   leot
Date:           Mon Jun  8 20:17:56 UTC 2020

Modified Files:
        pkgsrc/devel/py-pip: ALTERNATIVES Makefile

Log Message:
py-pip: Add pip[23] as alternatives

pip2 and pip3 are widely used aliases which make sure the specific
major version is used.

Patch from Bartosz Kosiorek via <https://github.com/NetBSD/pkgsrc/pull/64>.

Closes NetBSD/pkgsrc#64

PKGREVISION++


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 pkgsrc/devel/py-pip/ALTERNATIVES
cvs rdiff -u -r1.37 -r1.38 pkgsrc/devel/py-pip/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/devel/py-pip/ALTERNATIVES
diff -u pkgsrc/devel/py-pip/ALTERNATIVES:1.1 pkgsrc/devel/py-pip/ALTERNATIVES:1.2
--- pkgsrc/devel/py-pip/ALTERNATIVES:1.1        Sat Jul  4 14:12:03 2015
+++ pkgsrc/devel/py-pip/ALTERNATIVES    Mon Jun  8 20:17:56 2020
@@ -1 +1,2 @@
 bin/pip @PREFIX@/bin/pip@PYVERSSUFFIX@
+bin/pip@PYMAJORVERSION@ @PREFIX@/bin/pip@PYVERSSUFFIX@

Index: pkgsrc/devel/py-pip/Makefile
diff -u pkgsrc/devel/py-pip/Makefile:1.37 pkgsrc/devel/py-pip/Makefile:1.38
--- pkgsrc/devel/py-pip/Makefile:1.37   Mon Jun  1 16:27:17 2020
+++ pkgsrc/devel/py-pip/Makefile        Mon Jun  8 20:17:56 2020
@@ -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/}
 
@@ -16,6 +17,9 @@ REPLACE_PYTHON+=      src/pip/_vendor/appdirs
 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]
 



Home | Main Index | Thread Index | Old Index