summaryrefslogtreecommitdiff
path: root/lang/python
diff options
context:
space:
mode:
authorsjmulder <sjmulder@pkgsrc.org>2019-06-05 13:44:17 +0000
committersjmulder <sjmulder@pkgsrc.org>2019-06-05 13:44:17 +0000
commite757f433f6477a31973e8157d517eb33f93e146f (patch)
tree38fcca4ecbf4ab991a64b4ea8b55f7ee8fc35701 /lang/python
parentc296e3227617284096325780d831430eaa8fbd77 (diff)
downloadpkgsrc-e757f433f6477a31973e8157d517eb33f93e146f.tar.gz
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 (limited to 'lang/python')
-rw-r--r--lang/python/srcdist.mk6
1 files changed, 5 insertions, 1 deletions
diff --git a/lang/python/srcdist.mk b/lang/python/srcdist.mk
index 57bd04fa9ab..b5955e278d5 100644
--- a/lang/python/srcdist.mk
+++ b/lang/python/srcdist.mk
@@ -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