pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/math/py-tables py-tables: fix build for python 3.11
details: https://anonhg.NetBSD.org/pkgsrc/rev/fde4f750eab5
branches: trunk
changeset: 388409:fde4f750eab5
user: wiz <wiz%pkgsrc.org@localhost>
date: Sat Nov 19 09:58:31 2022 +0000
description:
py-tables: fix build for python 3.11
diffstat:
math/py-tables/Makefile | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
diffs (35 lines):
diff -r bf12af6c6b01 -r fde4f750eab5 math/py-tables/Makefile
--- a/math/py-tables/Makefile Sat Nov 19 08:11:01 2022 +0000
+++ b/math/py-tables/Makefile Sat Nov 19 09:58:31 2022 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.13 2022/04/15 11:27:41 nia Exp $
+# $NetBSD: Makefile,v 1.14 2022/11/19 09:58:31 wiz Exp $
DISTNAME= tables-3.7.0
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
-PKGREVISION= 1
+PKGREVISION= 2
CATEGORIES= math python
MASTER_SITES= ${MASTER_SITE_PYPI:=t/tables/}
@@ -16,6 +16,9 @@
PYSETUPBUILDARGS+= --hdf5=${BUILDLINK_PREFIX.hdf5}
PYSETUPBUILDARGS+= --lzo=${BUILDLINK_PREFIX.lzo}
+# check if cython dependency and post-extract target are still
+# needed when updating > 3.7.0
+TOOL_DEPENDS+= ${PYPKGPREFIX}-cython-[0-9]*:../../devel/py-cython
DEPENDS+= ${PYPKGPREFIX}-packaging-[0-9]*:../../devel/py-packaging
DEPENDS+= ${PYPKGPREFIX}-numexpr>=2.6.2:../../math/py-numexpr
@@ -25,6 +28,10 @@
USE_PKG_RESOURCES= yes
+post-extract:
+ cd ${WRKSRC}/tables && ${RM} _comp_*.c *extension.c
+ cythonize-${PYVERSSUFFIX} -3 ${WRKSRC}/tables/*.pxd
+
post-install:
cd ${DESTDIR}${PREFIX}/bin && \
${MV} pt2to3 pt2to3-${PYVERSSUFFIX} && \
Home |
Main Index |
Thread Index |
Old Index