Skip to content

Commit 340e541

Browse files
committed
Skip installing tables (PyTables) on free-threaded CPython envs since it has no free-threaded wheel and its sdist requires libhdf5-dev which CI does not install
1 parent 3e219cf commit 340e541

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

setup.cfg

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,15 @@ install_requires =
3535
pytest>=5.0
3636
numpy
3737

38-
# tables limitation is until 3.9.3 is out as that supports ARM OSX.
38+
# tables limitation is until 3.9.3 is out as that supports ARM OSX, and
39+
# tables wheels are not yet available for free-threaded CPython. Since
40+
# PEP 508 has no marker for that, tables is split into its own extra and
41+
# tox only installs it on the non-free-threaded envs.
3942
[options.extras_require]
4043
test =
4144
astropy
4245
pandas
46+
test_hdf5 =
4347
tables;platform_machine!='arm64'
4448

4549
[options.entry_points]

tox.ini

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@ deps =
3434
devdeps: astropy>=0.0.dev0
3535
extras =
3636
test
37+
# tables (PyTables) is needed for the pandas/HDF5 file_format, but
38+
# has no free-threaded wheels and its sdist requires libhdf5-dev,
39+
# which CI does not install. Skip the HDF5 extras on free-threaded
40+
# envs.
41+
!py313t-!py314t: test_hdf5
3742
commands =
3843
# Force numpy-dev after something in the stack downgrades it
3944
devdeps: python -m pip install --pre --upgrade --extra-index-url https://pypi.anaconda.org/scientific-python-nightly-wheels/simple numpy

0 commit comments

Comments
 (0)