Skip to content

Commit 90a9455

Browse files
committed
Restore the pin, but only for Python < 3.10
1 parent 7a48bd3 commit 90a9455

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

setup.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -313,12 +313,17 @@ def get_long_description():
313313
"traitsui",
314314
],
315315
"h5": [
316-
"numpy",
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'",
317321
"pandas",
318322
"tables",
319323
],
320324
"persistence": [
321-
"numpy",
325+
"numpy < 2.0; python_version<'3.10'",
326+
"numpy; python_version>='3.10'",
322327
],
323328
"preferences": [
324329
"configobj",

0 commit comments

Comments
 (0)