diff --git a/setup.py b/setup.py index 065f3847..629d54ed 100644 --- a/setup.py +++ b/setup.py @@ -313,14 +313,17 @@ def get_long_description(): "traitsui", ], "h5": [ - # PyTables is currently incompatible with NumPy 2.0 - # xref: enthought/apptools#345 - "numpy < 2.0", + # For Python earlier than 3.10, the most recent version of + # PyTables is incompatible with NumPy 2.x. + # xref: https://github.com/enthought/apptools/issues/345 + "numpy < 2.0; python_version<'3.10'", + "numpy; python_version>='3.10'", "pandas", "tables", ], "persistence": [ - "numpy < 2.0", + "numpy < 2.0; python_version<'3.10'", + "numpy; python_version>='3.10'", ], "preferences": [ "configobj",