Mon Nov 14 18:37:15 2022 UTC ()
py-frozendict: fix build with python 3.11

Do not try building C extension for python 3.11, not
supported yet.


(wiz)
diff -r1.11 -r1.12 pkgsrc/devel/py-frozendict/Makefile
diff -r1.2 -r1.3 pkgsrc/devel/py-frozendict/PLIST

cvs diff -r1.11 -r1.12 pkgsrc/devel/py-frozendict/Makefile (expand / switch to context diff)
--- pkgsrc/devel/py-frozendict/Makefile 2022/07/26 08:43:00 1.11
+++ pkgsrc/devel/py-frozendict/Makefile 2022/11/14 18:37:14 1.12
@@ -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}
@@ -13,6 +13,18 @@
 TEST_DEPENDS+=	${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
 
 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:

cvs diff -r1.2 -r1.3 pkgsrc/devel/py-frozendict/PLIST (expand / switch to context diff)
--- pkgsrc/devel/py-frozendict/PLIST 2022/01/30 10:56:42 1.2
+++ pkgsrc/devel/py-frozendict/PLIST 2022/11/14 18:37:14 1.3
@@ -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