pkgsrc-Changes archive

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

CVS commit: pkgsrc/math/py-tables



Module Name:    pkgsrc
Committed By:   wiz
Date:           Sat Nov 19 09:58:31 UTC 2022

Modified Files:
        pkgsrc/math/py-tables: Makefile

Log Message:
py-tables: fix build for python 3.11


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 pkgsrc/math/py-tables/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/math/py-tables/Makefile
diff -u pkgsrc/math/py-tables/Makefile:1.13 pkgsrc/math/py-tables/Makefile:1.14
--- pkgsrc/math/py-tables/Makefile:1.13 Fri Apr 15 11:27:41 2022
+++ pkgsrc/math/py-tables/Makefile      Sat Nov 19 09:58:31 2022
@@ -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+=    --bzip2=${BUILDLINK_P
 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 @@ PYTHON_VERSIONS_INCOMPATIBLE=        27 37
 
 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