pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/lang/python
Module Name: pkgsrc
Committed By: wiz
Date: Mon Oct 12 11:17:05 UTC 2026
Modified Files:
pkgsrc/lang/python: pyversion.mk
Log Message:
python: add PYSTABLEABI
This variable contains the C ABI name for Python, see
https://docs.python.org/3/c-api/stable.html
Python < 3.15 has "abi3", while 3.15+ has "abi3t"
Handle PRINT_PLIST_AWK so this will hopefully be fully automatic.
To generate a diff of this commit:
cvs rdiff -u -r1.178 -r1.179 pkgsrc/lang/python/pyversion.mk
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/lang/python/pyversion.mk
diff -u pkgsrc/lang/python/pyversion.mk:1.178 pkgsrc/lang/python/pyversion.mk:1.179
--- pkgsrc/lang/python/pyversion.mk:1.178 Sat Oct 10 10:38:00 2026
+++ pkgsrc/lang/python/pyversion.mk Mon Oct 12 11:17:05 2026
@@ -1,4 +1,4 @@
-# $NetBSD: pyversion.mk,v 1.178 2026/10/10 10:38:00 adam Exp $
+# $NetBSD: pyversion.mk,v 1.179 2026/10/12 11:17:05 wiz Exp $
# This file provides an interface to decide which version of python
# should be used in building a package. It should be directly
@@ -240,6 +240,14 @@ BUILDLINK_API_DEPENDS.${PYPACKAGE}?= ${P
PYPKGSRCDIR= ../../lang/${PYPACKAGE}
PYDEPENDENCY= ${BUILDLINK_API_DEPENDS.${PYPACKAGE}:=:${PYPKGSRCDIR}}
PYPKGPREFIX= py${_PYTHON_VERSION}
+# https://docs.python.org/3/c-api/stable.html
+.if ${PYTHON_VERSION} < 315
+PYSTABLEABI= abi3
+.else
+PYSTABLEABI= abi3t
+.endif
+PLIST_SUBST+= PYSTABLEABI=${PYSTABLEABI}
+PRINT_PLIST_AWK+= /${PYSTABLEABI}.so$$/ { sub(/${PYSTABLEABI}/, "$${PYSTABLEABI}") }
.endif
.if !empty(_PYTHON_VERSION:M3*)
PLIST.py3x= yes
Home |
Main Index |
Thread Index |
Old Index