pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/py-bintrees py-bintrees: fix build with python 3.11



details:   https://anonhg.NetBSD.org/pkgsrc/rev/892ed354df0e
branches:  trunk
changeset: 388166:892ed354df0e
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Mon Nov 14 17:52:18 2022 +0000

description:
py-bintrees: fix build with python 3.11

diffstat:

 devel/py-bintrees/Makefile |  7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diffs (20 lines):

diff -r 5b24ef08a4f4 -r 892ed354df0e devel/py-bintrees/Makefile
--- a/devel/py-bintrees/Makefile        Mon Nov 14 17:48:14 2022 +0000
+++ b/devel/py-bintrees/Makefile        Mon Nov 14 17:52:18 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.6 2022/01/04 20:52:52 wiz Exp $
+# $NetBSD: Makefile,v 1.7 2022/11/14 17:52:18 wiz Exp $
 
 DISTNAME=      bintrees-2.2.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
@@ -16,5 +16,10 @@
 
 PYTHON_VERSIONS_INCOMPATIBLE=  27
 
+# 2.2.0 distfile does not support python 3.11
+post-extract:
+       ${RM} ${WRKSRC}/bintrees/cython_trees.c
+       cd ${WRKSRC} && cythonize-${PYVERSSUFFIX} bintrees
+
 .include "../../lang/python/egg.mk"
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index