pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang/python lang/python: make built-in modules depend ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d6e83f2572f6
branches:  trunk
changeset: 396632:d6e83f2572f6
user:      sjmulder <sjmulder%pkgsrc.org@localhost>
date:      Wed Jun 05 13:44:17 2019 +0000

description:
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.

diffstat:

 lang/python/srcdist.mk |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (20 lines):

diff -r 7a85f9b7a7d1 -r d6e83f2572f6 lang/python/srcdist.mk
--- a/lang/python/srcdist.mk    Wed Jun 05 13:25:25 2019 +0000
+++ b/lang/python/srcdist.mk    Wed Jun 05 13:44:17 2019 +0000
@@ -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 @@
 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