Skip to content

Commit 09bd198

Browse files
authored
Drop a NumPy version pin that should no longer be necessary (#361)
This PR removes the `numpy < 2.0` dependency constraint, which should no longer be necessary. Update: the pin is still needed for Python 3.9 and 3.8; it's been dropped for Python 3.10 and later. Closes #345.
1 parent 81de64d commit 09bd198

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

setup.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -313,14 +313,17 @@ def get_long_description():
313313
"traitsui",
314314
],
315315
"h5": [
316-
# PyTables is currently incompatible with NumPy 2.0
317-
# xref: enthought/apptools#345
318-
"numpy < 2.0",
316+
# For Python earlier than 3.10, the most recent version of
317+
# PyTables is incompatible with NumPy 2.x.
318+
# xref: https://github.com/enthought/apptools/issues/345
319+
"numpy < 2.0; python_version<'3.10'",
320+
"numpy; python_version>='3.10'",
319321
"pandas",
320322
"tables",
321323
],
322324
"persistence": [
323-
"numpy < 2.0",
325+
"numpy < 2.0; python_version<'3.10'",
326+
"numpy; python_version>='3.10'",
324327
],
325328
"preferences": [
326329
"configobj",

0 commit comments

Comments
 (0)