tech-pkg archive

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

Re: bin/pip3.12 or bin/pip-3.12



Hi,

getting back to the point before freeze of the next branch, can I
convince you (whoever is concerned) that I may apply the change to
revert the renaming, as it deviates from $EVERYONE_ELSE for the pythons?

Discussion about rules how we'd like things in an ideal world don't
apply to this world where there is a naming scheme in place everywhere
else where distros install python. Just break that to be more pretty?
Please no.

To remind, this legacy naming scheme applies to

python$PYVERSUFFIX
python$PYVERSUFFIX-config
pip$PYVERSUFFIX
pydoc$PYVERSUFFIX

Those should stay as-is, unless there comes a change from upstream with
a consistent scheme from some python version on.

Update: I now also see that with lang/python312 there also is

bin/idle$PYVERSUFFIX

which is a astonishingly short-sighted addition in 2025, with such a
generic name. How should one know that relates to python? Or is this
just appearing due to pkgsrc packaging? Anyhow, unrelated to my
proposed patch, which still is this (hacked a bit to adapt to update to
pip in the meantime, if I missed something I'll fix it of course,
it's about the intent):

OK to apply now, please?

diff -ruN pkgsrc-2025Q1/devel/py-pip/ALTERNATIVES pkgsrc/devel/py-pip/ALTERNATIVES
--- pkgsrc-2025Q1/devel/py-pip/ALTERNATIVES     2025-04-02 05:01:42.000000000 +0200
+++ pkgsrc/devel/py-pip/ALTERNATIVES    2025-05-06 17:03:00.465342598 +0200
@@ -1,2 +1,2 @@
-bin/pip @PREFIX@/bin/pip-@PYVERSSUFFIX@
-bin/pip3 @PREFIX@/bin/pip-@PYVERSSUFFIX@
+bin/pip @PREFIX@/bin/pip@PYVERSSUFFIX@
+bin/pip3 @PREFIX@/bin/pip@PYVERSSUFFIX@
diff -ruN pkgsrc-2025Q1/devel/py-pip/Makefile pkgsrc/devel/py-pip/Makefile
--- pkgsrc-2025Q1/devel/py-pip/Makefile 2025-04-02 05:01:42.000000000 +0200
+++ pkgsrc/devel/py-pip/Makefile        2025-05-06 16:17:03.296408982 +0200
@@ -1,6 +1,7 @@
 # $NetBSD: Makefile,v 1.81 2025/02/10 10:50:58 adam Exp $
 
 DISTNAME=      pip-25.1.1
+PKGREVISION=   1
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    devel python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=p/pip/}
@@ -22,7 +23,7 @@
 FILES_SUBST+=  PYMAJORVERSION=${PYTHON_VERSION:C/^([0-9]).*/\1/}
 
 post-install:
-       cd ${DESTDIR}${PREFIX}/bin && ${RM} -f pip3 && ${MV} pip pip-${PYVERSSUFFIX} || ${TRUE}
+       cd ${DESTDIR}${PREFIX}/bin && ${RM} -f pip3 && ${MV} pip pip${PYVERSSUFFIX} || ${TRUE}
 
 .include "../../lang/python/application.mk"
 .include "../../lang/python/wheel.mk"
diff -ruN pkgsrc-2025Q1/devel/py-pip/PLIST pkgsrc/devel/py-pip/PLIST
--- pkgsrc-2025Q1/devel/py-pip/PLIST    2025-04-02 05:01:42.000000000 +0200
+++ pkgsrc/devel/py-pip/PLIST   2025-05-06 16:17:12.704298131 +0200
@@ -1,5 +1,5 @@
 @comment $NetBSD: PLIST,v 1.45 2025/02/02 16:10:42 wiz Exp $
-bin/pip-${PYVERSSUFFIX}
+bin/pip${PYVERSSUFFIX}
 ${PYSITELIB}/${WHEEL_INFODIR}/AUTHORS.txt
 ${PYSITELIB}/${WHEEL_INFODIR}/LICENSE.txt
 ${PYSITELIB}/${WHEEL_INFODIR}/METADATA



Alrighty then,

Thomas

-- 
Dr. Thomas Orgis
HPC @ Universität Hamburg


Home | Main Index | Thread Index | Old Index