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: sjmulder
Date: Wed Jun 5 13:44:17 UTC 2019
Modified Files:
pkgsrc/lang/python: srcdist.mk
Log Message:
lang/python: make built-in modules depend on distversion
Built-in Python modules are built from extracted Python sources and
therefere bound to that specific Python version. For example, trying to
build a module from Python 2.7.16 against an installed Python 2.7.13 is
likely to cause errors.
This commit makes built-in Python modules depend on the full current
Python version.
To generate a diff of this commit:
cvs rdiff -u -r1.37 -r1.38 pkgsrc/lang/python/srcdist.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/srcdist.mk
diff -u pkgsrc/lang/python/srcdist.mk:1.37 pkgsrc/lang/python/srcdist.mk:1.38
--- pkgsrc/lang/python/srcdist.mk:1.37 Tue Jul 3 03:55:40 2018
+++ pkgsrc/lang/python/srcdist.mk Wed Jun 5 13:44:17 2019
@@ -1,4 +1,4 @@
-# $NetBSD: srcdist.mk,v 1.37 2018/07/03 03:55:40 adam Exp $
+# $NetBSD: srcdist.mk,v 1.38 2019/06/05 13:44:17 sjmulder Exp $
.include "../../lang/python/pyversion.mk"
@@ -15,6 +15,10 @@ WRKSRC= ${WRKDIR}/${PYSUBDIR}
EXTRACT_ELEMENTS+= ${PYSUBDIR}/Modules/clinic
. endif
+# Standard modules depend on their own version
+BUILDLINK_API_DEPENDS.${PYPACKAGE}+= ${PYPACKAGE}>=${PY_DISTVERSION}
+BUILDLINK_ABI_DEPENDS.${PYPACKAGE}+= ${PYPACKAGE}>=${PY_DISTVERSION}
+
python-std-patchsetup:
${SED} ${PY_SETUP_SUBST:S/=/@!/:S/$/!g/:S/^/ -e s!@/} \
<${FILESDIR}/setup.py >${WRKSRC}/setup.py
Home |
Main Index |
Thread Index |
Old Index