pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/py-frozendict py-frozendict: fix build with pyth...
details: https://anonhg.NetBSD.org/pkgsrc/rev/3ba6e183c3ff
branches: trunk
changeset: 388170:3ba6e183c3ff
user: wiz <wiz%pkgsrc.org@localhost>
date: Mon Nov 14 18:37:14 2022 +0000
description:
py-frozendict: fix build with python 3.11
Do not try building C extension for python 3.11, not
supported yet.
diffstat:
devel/py-frozendict/Makefile | 14 +++++++++++++-
devel/py-frozendict/PLIST | 4 ++--
2 files changed, 15 insertions(+), 3 deletions(-)
diffs (46 lines):
diff -r 35a57aa10e78 -r 3ba6e183c3ff devel/py-frozendict/Makefile
--- a/devel/py-frozendict/Makefile Mon Nov 14 18:21:58 2022 +0000
+++ b/devel/py-frozendict/Makefile Mon Nov 14 18:37:14 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.11 2022/07/26 08:43:00 adam Exp $
+# $NetBSD: Makefile,v 1.12 2022/11/14 18:37:14 wiz Exp $
DISTNAME= frozendict-2.3.4
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
@@ -14,6 +14,18 @@
PYTHON_VERSIONS_INCOMPATIBLE= 27
+PLIST_VARS= c
+
+.include "../../lang/python/pyversion.mk"
+
+.if ${PYPKGPREFIX} == "py311"
+# as of 2.3.4, python 3.11 is not supported
+# do not build C extension for now
+PYSETUPARGS= py
+.else
+PLIST.c= yes
+.endif
+
DISTUTILS_BUILDDIR_IN_TEST_ENV= yes
do-test:
cd ${WRKSRC} && ${SETENV} ${TEST_ENV} pytest-${PYVERSSUFFIX}
diff -r 35a57aa10e78 -r 3ba6e183c3ff devel/py-frozendict/PLIST
--- a/devel/py-frozendict/PLIST Mon Nov 14 18:21:58 2022 +0000
+++ b/devel/py-frozendict/PLIST Mon Nov 14 18:37:14 2022 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.2 2022/01/30 10:56:42 wiz Exp $
+@comment $NetBSD: PLIST,v 1.3 2022/11/14 18:37:14 wiz Exp $
${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
@@ -7,7 +7,7 @@
${PYSITELIB}/frozendict/__init__.py
${PYSITELIB}/frozendict/__init__.pyc
${PYSITELIB}/frozendict/__init__.pyo
-${PYSITELIB}/frozendict/_frozendict.so
+${PLIST.c}${PYSITELIB}/frozendict/_frozendict.so
${PYSITELIB}/frozendict/core.py
${PYSITELIB}/frozendict/core.pyc
${PYSITELIB}/frozendict/core.pyo
Home |
Main Index |
Thread Index |
Old Index