pkgsrc-WIP-changes archive

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

py-tables: Testing hack to unbreak build on macOS



Module Name:	pkgsrc-wip
Committed By:	Jason Bacon <bacon%NetBSD.org@localhost>
Pushed By:	outpaddling
Date:		Sun Dec 1 12:47:15 2024 -0600
Changeset:	0c802127768ce87a40b102c0bfe7790d2187c11a

Added Files:
	py-tables/ALTERNATIVES
	py-tables/DESCR
	py-tables/Makefile
	py-tables/PLIST
	py-tables/distinfo
	py-tables/patches/patch-setup.py

Log Message:
py-tables: Testing hack to unbreak build on macOS

https://github.com/PyTables/PyTables/issues/1219#issuecomment-2510058921

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=0c802127768ce87a40b102c0bfe7790d2187c11a

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

diffstat:
 py-tables/ALTERNATIVES           |   4 +
 py-tables/DESCR                  |   7 +
 py-tables/Makefile               |  46 ++++++
 py-tables/PLIST                  | 320 +++++++++++++++++++++++++++++++++++++++
 py-tables/distinfo               |   6 +
 py-tables/patches/patch-setup.py |  62 ++++++++
 6 files changed, 445 insertions(+)

diffs:
diff --git a/py-tables/ALTERNATIVES b/py-tables/ALTERNATIVES
new file mode 100644
index 0000000000..387614891f
--- /dev/null
+++ b/py-tables/ALTERNATIVES
@@ -0,0 +1,4 @@
+bin/pt2to3 @PREFIX@/bin/pt2to3-@PYVERSSUFFIX@
+bin/ptdump @PREFIX@/bin/ptdump-@PYVERSSUFFIX@
+bin/ptrepack @PREFIX@/bin/ptrepack-@PYVERSSUFFIX@
+bin/pttree @PREFIX@/bin/pttree-@PYVERSSUFFIX@
diff --git a/py-tables/DESCR b/py-tables/DESCR
new file mode 100644
index 0000000000..2c7ac9b573
--- /dev/null
+++ b/py-tables/DESCR
@@ -0,0 +1,7 @@
+PyTables is a hierarchical database package designed to efficiently
+manage very large amounts of data. PyTables is built on top of the
+HDF5 library and the numarray package. It features an object-oriented
+interface that, combined with natural naming and C-code generated from
+Pyrex sources, makes it a fast, yet extremely easy-to-use tool for
+interactively saving and retrieving very large amounts of data.  It also
+provides flexible indexed access on disk to anywhere in the data.
diff --git a/py-tables/Makefile b/py-tables/Makefile
new file mode 100644
index 0000000000..bfd6365bf2
--- /dev/null
+++ b/py-tables/Makefile
@@ -0,0 +1,46 @@
+# $NetBSD: Makefile,v 1.21 2024/11/11 07:28:43 wiz Exp $
+
+DISTNAME=	tables-3.10.1
+PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
+CATEGORIES=	math python
+MASTER_SITES=	${MASTER_SITE_PYPI:=t/tables/}
+
+MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=	https://www.pytables.org/
+COMMENT=	Database package for large amounts of data
+LICENSE=	modified-bsd
+
+TOOL_DEPENDS+=	${PYPKGPREFIX}-cython>=0.29.32:../../devel/py-cython
+TOOL_DEPENDS+=	${PYPKGPREFIX}-setuptools>=61.0.0:../../devel/py-setuptools
+DEPENDS+=	${PYPKGPREFIX}-cpuinfo-[0-9]*:../../sysutils/py-cpuinfo
+DEPENDS+=	${PYPKGPREFIX}-packaging-[0-9]*:../../devel/py-packaging
+DEPENDS+=	${PYPKGPREFIX}-numexpr>=2.6.2:../../math/py-numexpr
+DEPENDS+=	${PYPKGPREFIX}-typing-extensions>=4.4.0:../../devel/py-typing-extensions
+
+USE_LANGUAGES=	c c++
+
+post-install:
+	cd ${DESTDIR}${PREFIX}/bin && \
+	${MV} pt2to3 pt2to3-${PYVERSSUFFIX} && \
+	${MV} ptdump ptdump-${PYVERSSUFFIX} && \
+	${MV} ptrepack ptrepack-${PYVERSSUFFIX} && \
+	${MV} pttree pttree-${PYVERSSUFFIX} || ${TRUE}
+
+# needs to be installed first
+# as of 3.10.1
+# FAILED (errors=314, skipped=59)
+# many with
+# FileNotFoundError: [Errno 2] No such file or directory: '/home/pbulk/.pytables-cpuinfo.json'
+do-test:
+	${PYTHONBIN} -m tables.tests.test_all
+
+.include "../../archivers/bzip2/buildlink3.mk"
+.include "../../archivers/lzo/buildlink3.mk"
+.include "../../devel/blosc/buildlink3.mk"
+.include "../../devel/blosc2/buildlink3.mk"
+.include "../../devel/hdf5/buildlink3.mk"
+.include "../../devel/zlib/buildlink3.mk"
+BUILDLINK_API_DEPENDS.py-numpy+=	${PYPKGPREFIX}-numpy>=2.0
+.include "../../math/py-numpy/buildlink3.mk"
+.include "../../lang/python/wheel.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/py-tables/PLIST b/py-tables/PLIST
new file mode 100644
index 0000000000..41add40a0b
--- /dev/null
+++ b/py-tables/PLIST
@@ -0,0 +1,320 @@
+@comment $NetBSD: PLIST,v 1.6 2024/10/23 22:55:52 wiz Exp $
+bin/pt2to3-${PYVERSSUFFIX}
+bin/ptdump-${PYVERSSUFFIX}
+bin/ptrepack-${PYVERSSUFFIX}
+bin/pttree-${PYVERSSUFFIX}
+${PYSITELIB}/${WHEEL_INFODIR}/LICENSE.txt
+${PYSITELIB}/${WHEEL_INFODIR}/METADATA
+${PYSITELIB}/${WHEEL_INFODIR}/RECORD
+${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
+${PYSITELIB}/${WHEEL_INFODIR}/entry_points.txt
+${PYSITELIB}/${WHEEL_INFODIR}/top_level.txt
+${PYSITELIB}/tables/__init__.py
+${PYSITELIB}/tables/__init__.pyc
+${PYSITELIB}/tables/__init__.pyo
+${PYSITELIB}/tables/_comp_bzip2.pyx
+${PYSITELIB}/tables/_comp_bzip2.so
+${PYSITELIB}/tables/_comp_lzo.pyx
+${PYSITELIB}/tables/_comp_lzo.so
+${PYSITELIB}/tables/_version.py
+${PYSITELIB}/tables/_version.pyc
+${PYSITELIB}/tables/_version.pyo
+${PYSITELIB}/tables/array.py
+${PYSITELIB}/tables/array.pyc
+${PYSITELIB}/tables/array.pyo
+${PYSITELIB}/tables/atom.py
+${PYSITELIB}/tables/atom.pyc
+${PYSITELIB}/tables/atom.pyo
+${PYSITELIB}/tables/attributeset.py
+${PYSITELIB}/tables/attributeset.pyc
+${PYSITELIB}/tables/attributeset.pyo
+${PYSITELIB}/tables/carray.py
+${PYSITELIB}/tables/carray.pyc
+${PYSITELIB}/tables/carray.pyo
+${PYSITELIB}/tables/conditions.py
+${PYSITELIB}/tables/conditions.pyc
+${PYSITELIB}/tables/conditions.pyo
+${PYSITELIB}/tables/definitions.pxd
+${PYSITELIB}/tables/description.py
+${PYSITELIB}/tables/description.pyc
+${PYSITELIB}/tables/description.pyo
+${PYSITELIB}/tables/earray.py
+${PYSITELIB}/tables/earray.pyc
+${PYSITELIB}/tables/earray.pyo
+${PYSITELIB}/tables/exceptions.py
+${PYSITELIB}/tables/exceptions.pyc
+${PYSITELIB}/tables/exceptions.pyo
+${PYSITELIB}/tables/expression.py
+${PYSITELIB}/tables/expression.pyc
+${PYSITELIB}/tables/expression.pyo
+${PYSITELIB}/tables/file.py
+${PYSITELIB}/tables/file.pyc
+${PYSITELIB}/tables/file.pyo
+${PYSITELIB}/tables/filters.py
+${PYSITELIB}/tables/filters.pyc
+${PYSITELIB}/tables/filters.pyo
+${PYSITELIB}/tables/flavor.py
+${PYSITELIB}/tables/flavor.pyc
+${PYSITELIB}/tables/flavor.pyo
+${PYSITELIB}/tables/group.py
+${PYSITELIB}/tables/group.pyc
+${PYSITELIB}/tables/group.pyo
+${PYSITELIB}/tables/hdf5extension.pxd
+${PYSITELIB}/tables/hdf5extension.pyx
+${PYSITELIB}/tables/hdf5extension.so
+${PYSITELIB}/tables/idxutils.py
+${PYSITELIB}/tables/idxutils.pyc
+${PYSITELIB}/tables/idxutils.pyo
+${PYSITELIB}/tables/index.py
+${PYSITELIB}/tables/index.pyc
+${PYSITELIB}/tables/index.pyo
+${PYSITELIB}/tables/indexes.py
+${PYSITELIB}/tables/indexes.pyc
+${PYSITELIB}/tables/indexes.pyo
+${PYSITELIB}/tables/indexesextension.pyx
+${PYSITELIB}/tables/indexesextension.so
+${PYSITELIB}/tables/leaf.py
+${PYSITELIB}/tables/leaf.pyc
+${PYSITELIB}/tables/leaf.pyo
+${PYSITELIB}/tables/link.py
+${PYSITELIB}/tables/link.pyc
+${PYSITELIB}/tables/link.pyo
+${PYSITELIB}/tables/linkextension.pyx
+${PYSITELIB}/tables/linkextension.so
+${PYSITELIB}/tables/lrucacheextension.pxd
+${PYSITELIB}/tables/lrucacheextension.pyx
+${PYSITELIB}/tables/lrucacheextension.so
+${PYSITELIB}/tables/misc/__init__.py
+${PYSITELIB}/tables/misc/__init__.pyc
+${PYSITELIB}/tables/misc/__init__.pyo
+${PYSITELIB}/tables/misc/enum.py
+${PYSITELIB}/tables/misc/enum.pyc
+${PYSITELIB}/tables/misc/enum.pyo
+${PYSITELIB}/tables/misc/proxydict.py
+${PYSITELIB}/tables/misc/proxydict.pyc
+${PYSITELIB}/tables/misc/proxydict.pyo
+${PYSITELIB}/tables/node.py
+${PYSITELIB}/tables/node.pyc
+${PYSITELIB}/tables/node.pyo
+${PYSITELIB}/tables/nodes/__init__.py
+${PYSITELIB}/tables/nodes/__init__.pyc
+${PYSITELIB}/tables/nodes/__init__.pyo
+${PYSITELIB}/tables/nodes/filenode.py
+${PYSITELIB}/tables/nodes/filenode.pyc
+${PYSITELIB}/tables/nodes/filenode.pyo
+${PYSITELIB}/tables/nodes/tests/__init__.py
+${PYSITELIB}/tables/nodes/tests/__init__.pyc
+${PYSITELIB}/tables/nodes/tests/__init__.pyo
+${PYSITELIB}/tables/nodes/tests/test_filenode.dat
+${PYSITELIB}/tables/nodes/tests/test_filenode.py
+${PYSITELIB}/tables/nodes/tests/test_filenode.pyc
+${PYSITELIB}/tables/nodes/tests/test_filenode.pyo
+${PYSITELIB}/tables/nodes/tests/test_filenode.xbm
+${PYSITELIB}/tables/nodes/tests/test_filenode_v1.h5
+${PYSITELIB}/tables/parameters.py
+${PYSITELIB}/tables/parameters.pyc
+${PYSITELIB}/tables/parameters.pyo
+${PYSITELIB}/tables/path.py
+${PYSITELIB}/tables/path.pyc
+${PYSITELIB}/tables/path.pyo
+${PYSITELIB}/tables/registry.py
+${PYSITELIB}/tables/registry.pyc
+${PYSITELIB}/tables/registry.pyo
+${PYSITELIB}/tables/req_versions.py
+${PYSITELIB}/tables/req_versions.pyc
+${PYSITELIB}/tables/req_versions.pyo
+${PYSITELIB}/tables/scripts/__init__.py
+${PYSITELIB}/tables/scripts/__init__.pyc
+${PYSITELIB}/tables/scripts/__init__.pyo
+${PYSITELIB}/tables/scripts/pt2to3.py
+${PYSITELIB}/tables/scripts/pt2to3.pyc
+${PYSITELIB}/tables/scripts/pt2to3.pyo
+${PYSITELIB}/tables/scripts/ptdump.py
+${PYSITELIB}/tables/scripts/ptdump.pyc
+${PYSITELIB}/tables/scripts/ptdump.pyo
+${PYSITELIB}/tables/scripts/ptrepack.py
+${PYSITELIB}/tables/scripts/ptrepack.pyc
+${PYSITELIB}/tables/scripts/ptrepack.pyo
+${PYSITELIB}/tables/scripts/pttree.py
+${PYSITELIB}/tables/scripts/pttree.pyc
+${PYSITELIB}/tables/scripts/pttree.pyo
+${PYSITELIB}/tables/table.py
+${PYSITELIB}/tables/table.pyc
+${PYSITELIB}/tables/table.pyo
+${PYSITELIB}/tables/tableextension.pyx
+${PYSITELIB}/tables/tableextension.so
+${PYSITELIB}/tables/tests/Table2_1_lzo_nrv2e_shuffle.h5
+${PYSITELIB}/tables/tests/Tables_lzo1.h5
+${PYSITELIB}/tables/tests/Tables_lzo1_shuffle.h5
+${PYSITELIB}/tables/tests/Tables_lzo2.h5
+${PYSITELIB}/tables/tests/Tables_lzo2_shuffle.h5
+${PYSITELIB}/tables/tests/__init__.py
+${PYSITELIB}/tables/tests/__init__.pyc
+${PYSITELIB}/tables/tests/__init__.pyo
+${PYSITELIB}/tables/tests/array_mdatom.h5
+${PYSITELIB}/tables/tests/attr-u16.h5
+${PYSITELIB}/tables/tests/b2nd-no-chunkshape.h5
+${PYSITELIB}/tables/tests/blosc_bigendian.h5
+${PYSITELIB}/tables/tests/bug-idx.h5
+${PYSITELIB}/tables/tests/check_leaks.py
+${PYSITELIB}/tables/tests/check_leaks.pyc
+${PYSITELIB}/tables/tests/check_leaks.pyo
+${PYSITELIB}/tables/tests/common.py
+${PYSITELIB}/tables/tests/common.pyc
+${PYSITELIB}/tables/tests/common.pyo
+${PYSITELIB}/tables/tests/create_backcompat_indexes.py
+${PYSITELIB}/tables/tests/create_backcompat_indexes.pyc
+${PYSITELIB}/tables/tests/create_backcompat_indexes.pyo
+${PYSITELIB}/tables/tests/elink.h5
+${PYSITELIB}/tables/tests/elink2.h5
+${PYSITELIB}/tables/tests/ex-noattr.h5
+${PYSITELIB}/tables/tests/flavored_vlarrays-format1.6.h5
+${PYSITELIB}/tables/tests/float.h5
+${PYSITELIB}/tables/tests/idx-std-1.x.h5
+${PYSITELIB}/tables/tests/indexes_2_0.h5
+${PYSITELIB}/tables/tests/indexes_2_1.h5
+${PYSITELIB}/tables/tests/issue_368.h5
+${PYSITELIB}/tables/tests/issue_560.h5
+${PYSITELIB}/tables/tests/itemsize.h5
+${PYSITELIB}/tables/tests/matlab_file.mat
+${PYSITELIB}/tables/tests/nested-type-with-gaps.h5
+${PYSITELIB}/tables/tests/non-chunked-table.h5
+${PYSITELIB}/tables/tests/oldflavor_numeric.h5
+${PYSITELIB}/tables/tests/out_of_order_types.h5
+${PYSITELIB}/tables/tests/python2.h5
+${PYSITELIB}/tables/tests/python3.h5
+${PYSITELIB}/tables/tests/scalar.h5
+${PYSITELIB}/tables/tests/slink.h5
+${PYSITELIB}/tables/tests/smpl_SDSextendible.h5
+${PYSITELIB}/tables/tests/smpl_compound_chunked.h5
+${PYSITELIB}/tables/tests/smpl_enum.h5
+${PYSITELIB}/tables/tests/smpl_f64be.h5
+${PYSITELIB}/tables/tests/smpl_f64le.h5
+${PYSITELIB}/tables/tests/smpl_i32be.h5
+${PYSITELIB}/tables/tests/smpl_i32le.h5
+${PYSITELIB}/tables/tests/smpl_i64be.h5
+${PYSITELIB}/tables/tests/smpl_i64le.h5
+${PYSITELIB}/tables/tests/smpl_unsupptype.h5
+${PYSITELIB}/tables/tests/test_all.py
+${PYSITELIB}/tables/tests/test_all.pyc
+${PYSITELIB}/tables/tests/test_all.pyo
+${PYSITELIB}/tables/tests/test_array.py
+${PYSITELIB}/tables/tests/test_array.pyc
+${PYSITELIB}/tables/tests/test_array.pyo
+${PYSITELIB}/tables/tests/test_attributes.py
+${PYSITELIB}/tables/tests/test_attributes.pyc
+${PYSITELIB}/tables/tests/test_attributes.pyo
+${PYSITELIB}/tables/tests/test_aux.py
+${PYSITELIB}/tables/tests/test_aux.pyc
+${PYSITELIB}/tables/tests/test_aux.pyo
+${PYSITELIB}/tables/tests/test_backcompat.py
+${PYSITELIB}/tables/tests/test_backcompat.pyc
+${PYSITELIB}/tables/tests/test_backcompat.pyo
+${PYSITELIB}/tables/tests/test_basics.py
+${PYSITELIB}/tables/tests/test_basics.pyc
+${PYSITELIB}/tables/tests/test_basics.pyo
+${PYSITELIB}/tables/tests/test_carray.py
+${PYSITELIB}/tables/tests/test_carray.pyc
+${PYSITELIB}/tables/tests/test_carray.pyo
+${PYSITELIB}/tables/tests/test_create.py
+${PYSITELIB}/tables/tests/test_create.pyc
+${PYSITELIB}/tables/tests/test_create.pyo
+${PYSITELIB}/tables/tests/test_direct_chunk.py
+${PYSITELIB}/tables/tests/test_direct_chunk.pyc
+${PYSITELIB}/tables/tests/test_direct_chunk.pyo
+${PYSITELIB}/tables/tests/test_do_undo.py
+${PYSITELIB}/tables/tests/test_do_undo.pyc
+${PYSITELIB}/tables/tests/test_do_undo.pyo
+${PYSITELIB}/tables/tests/test_earray.py
+${PYSITELIB}/tables/tests/test_earray.pyc
+${PYSITELIB}/tables/tests/test_earray.pyo
+${PYSITELIB}/tables/tests/test_enum.py
+${PYSITELIB}/tables/tests/test_enum.pyc
+${PYSITELIB}/tables/tests/test_enum.pyo
+${PYSITELIB}/tables/tests/test_expression.py
+${PYSITELIB}/tables/tests/test_expression.pyc
+${PYSITELIB}/tables/tests/test_expression.pyo
+${PYSITELIB}/tables/tests/test_garbage.py
+${PYSITELIB}/tables/tests/test_garbage.pyc
+${PYSITELIB}/tables/tests/test_garbage.pyo
+${PYSITELIB}/tables/tests/test_hdf5compat.py
+${PYSITELIB}/tables/tests/test_hdf5compat.pyc
+${PYSITELIB}/tables/tests/test_hdf5compat.pyo
+${PYSITELIB}/tables/tests/test_index_backcompat.py
+${PYSITELIB}/tables/tests/test_index_backcompat.pyc
+${PYSITELIB}/tables/tests/test_index_backcompat.pyo
+${PYSITELIB}/tables/tests/test_indexes.py
+${PYSITELIB}/tables/tests/test_indexes.pyc
+${PYSITELIB}/tables/tests/test_indexes.pyo
+${PYSITELIB}/tables/tests/test_indexvalues.py
+${PYSITELIB}/tables/tests/test_indexvalues.pyc
+${PYSITELIB}/tables/tests/test_indexvalues.pyo
+${PYSITELIB}/tables/tests/test_large_tables.py
+${PYSITELIB}/tables/tests/test_large_tables.pyc
+${PYSITELIB}/tables/tests/test_large_tables.pyo
+${PYSITELIB}/tables/tests/test_links.py
+${PYSITELIB}/tables/tests/test_links.pyc
+${PYSITELIB}/tables/tests/test_links.pyo
+${PYSITELIB}/tables/tests/test_lists.py
+${PYSITELIB}/tables/tests/test_lists.pyc
+${PYSITELIB}/tables/tests/test_lists.pyo
+${PYSITELIB}/tables/tests/test_nestedtypes.py
+${PYSITELIB}/tables/tests/test_nestedtypes.pyc
+${PYSITELIB}/tables/tests/test_nestedtypes.pyo
+${PYSITELIB}/tables/tests/test_numpy.py
+${PYSITELIB}/tables/tests/test_numpy.pyc
+${PYSITELIB}/tables/tests/test_numpy.pyo
+${PYSITELIB}/tables/tests/test_queries.py
+${PYSITELIB}/tables/tests/test_queries.pyc
+${PYSITELIB}/tables/tests/test_queries.pyo
+${PYSITELIB}/tables/tests/test_ref_array1.mat
+${PYSITELIB}/tables/tests/test_ref_array2.mat
+${PYSITELIB}/tables/tests/test_suite.py
+${PYSITELIB}/tables/tests/test_suite.pyc
+${PYSITELIB}/tables/tests/test_suite.pyo
+${PYSITELIB}/tables/tests/test_szip.h5
+${PYSITELIB}/tables/tests/test_tables.py
+${PYSITELIB}/tables/tests/test_tables.pyc
+${PYSITELIB}/tables/tests/test_tables.pyo
+${PYSITELIB}/tables/tests/test_tablesMD.py
+${PYSITELIB}/tables/tests/test_tablesMD.pyc
+${PYSITELIB}/tables/tests/test_tablesMD.pyo
+${PYSITELIB}/tables/tests/test_timestamps.py
+${PYSITELIB}/tables/tests/test_timestamps.pyc
+${PYSITELIB}/tables/tests/test_timestamps.pyo
+${PYSITELIB}/tables/tests/test_timetype.py
+${PYSITELIB}/tables/tests/test_timetype.pyc
+${PYSITELIB}/tables/tests/test_timetype.pyo
+${PYSITELIB}/tables/tests/test_tree.py
+${PYSITELIB}/tables/tests/test_tree.pyc
+${PYSITELIB}/tables/tests/test_tree.pyo
+${PYSITELIB}/tables/tests/test_types.py
+${PYSITELIB}/tables/tests/test_types.pyc
+${PYSITELIB}/tables/tests/test_types.pyo
+${PYSITELIB}/tables/tests/test_utils.py
+${PYSITELIB}/tables/tests/test_utils.pyc
+${PYSITELIB}/tables/tests/test_utils.pyo
+${PYSITELIB}/tables/tests/test_vlarray.py
+${PYSITELIB}/tables/tests/test_vlarray.pyc
+${PYSITELIB}/tables/tests/test_vlarray.pyo
+${PYSITELIB}/tables/tests/time-table-vlarray-1_x.h5
+${PYSITELIB}/tables/tests/times-nested-be.h5
+${PYSITELIB}/tables/tests/vlstr_attr.h5
+${PYSITELIB}/tables/tests/vlunicode_endian.h5
+${PYSITELIB}/tables/tests/zerodim-attrs-1.3.h5
+${PYSITELIB}/tables/tests/zerodim-attrs-1.4.h5
+${PYSITELIB}/tables/undoredo.py
+${PYSITELIB}/tables/undoredo.pyc
+${PYSITELIB}/tables/undoredo.pyo
+${PYSITELIB}/tables/unimplemented.py
+${PYSITELIB}/tables/unimplemented.pyc
+${PYSITELIB}/tables/unimplemented.pyo
+${PYSITELIB}/tables/utils.py
+${PYSITELIB}/tables/utils.pyc
+${PYSITELIB}/tables/utils.pyo
+${PYSITELIB}/tables/utilsextension.pxd
+${PYSITELIB}/tables/utilsextension.pyx
+${PYSITELIB}/tables/utilsextension.so
+${PYSITELIB}/tables/vlarray.py
+${PYSITELIB}/tables/vlarray.pyc
+${PYSITELIB}/tables/vlarray.pyo
diff --git a/py-tables/distinfo b/py-tables/distinfo
new file mode 100644
index 0000000000..3ff0dc4e15
--- /dev/null
+++ b/py-tables/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.9 2024/10/23 22:55:52 wiz Exp $
+
+BLAKE2s (tables-3.10.1.tar.gz) = 1150b460680ad8bad06e7fbf137cb576e80de0de2d0d5b1d3175df9ec3a7db2b
+SHA512 (tables-3.10.1.tar.gz) = 7590dccefdd718d170ac288d391173ed540760a911f53fd39e37dd74237dc554f9363c8d9d4d518f067da299d71a1d8cb4a40134b1afaf79daa0a17de248caf5
+Size (tables-3.10.1.tar.gz) = 4762413 bytes
+SHA1 (patch-setup.py) = 82e32fd4f0d6aea42b3e01afa464150c8823c82a
diff --git a/py-tables/patches/patch-setup.py b/py-tables/patches/patch-setup.py
new file mode 100644
index 0000000000..3924a6516e
--- /dev/null
+++ b/py-tables/patches/patch-setup.py
@@ -0,0 +1,62 @@
+$NetBSD$
+
+# Hack for macOS, where setup.py thinks it didn't find blosc
+
+--- setup.py.orig	2024-08-17 08:56:33.000000000 +0000
++++ setup.py
+@@ -418,6 +418,7 @@ class BasePackage:
+             ]
+ 
+         if use_pkgconfig:
++            print("find_directories() using pkgconfig...")
+             # header
+             pkgconfig_header_dirs = [
+                 Path(d[2:])
+@@ -455,6 +456,10 @@ class BasePackage:
+ 
+         hook_dirs = hook() if hook is not None else [None, None, None]
+ 
++        print("locations = ", locations)
++        print("hook_dirs = ", hook_dirs)
++        print("pkgconfig_dirs = ", pkgconfig_dirs)
++
+         directories = [None, None, None]  # headers, libraries, runtime
+         for idx, (name, find_path, default_dirs) in enumerate(dirdata):
+             use_locations = (
+@@ -463,6 +468,7 @@ class BasePackage:
+                 or hook_dirs[idx]
+                 or default_dirs
+             )
++            print("use_locations = ", use_locations)
+             # pkgconfig does not list bin/ as the runtime dir
+             if (
+                 name == "blosc"  # blosc
+@@ -475,8 +481,12 @@ class BasePackage:
+                 use_locations = list(use_locations)
+                 use_locations[0] = use_locations[0].parent / "bin"
+                 print(f"Patching runtime dir: {str(use_locations[0])}")
++
++            # FIXME: path is coming up empty for blosc rundir on macOS,
++            # while returning True on other platforms.
+             path = find_path(use_locations)
+             if path:
++                print("path = ", path)
+                 if path is True:
+                     directories[idx] = True
+                     continue
+@@ -497,6 +507,15 @@ class BasePackage:
+                 else:
+                     directories[idx] = Path(path).parent
+ 
++        if name == "blosc" or name == "blosc2":
++            print("directories = ", directories)
++            print("rundir (should be 'True') = ", directories[2])
++            # sys.exit(1)
++            # FIXME: Forcing rundir to True for macOS.  This is a hack,
++            # but it's the value it should have, since the headers and libs
++            # are found.  This prevents setup.py from copying libblosc
++            # into the py-tables installation, breaking PLIST.
++            directories[2] = True
+         return tuple(directories)
+ 
+ 


Home | Main Index | Thread Index | Old Index