From d77ee2ffe246b1a7a31806713785911dbfc161d7 Mon Sep 17 00:00:00 2001 From: Joris Van den Bossche Date: Wed, 10 Jan 2024 09:11:11 +0100 Subject: [PATCH] GH-39537: [Packaging][Python] Add a numpy<2 pin to the install requirements for the 15.x release branch (#39538) ### Rationale for this change PyArrow wheels for the 15.0.0 release will not be compatible with future numpy 2.0 packages, therefore it is recommended to add this upper pin now for _releases_. We will keep the more flexible pin on the development branch (by reverting this commit on main, but so it can be cherry-picked in the release branch) * Closes: #39537 Authored-by: Joris Van den Bossche Signed-off-by: Joris Van den Bossche --- python/setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/setup.py b/python/setup.py index b1c825d84d5a9..51eb40af088e5 100755 --- a/python/setup.py +++ b/python/setup.py @@ -449,7 +449,7 @@ def has_ext_modules(foo): install_requires = ( - 'numpy >= 1.16.6', + 'numpy >= 1.16.6, <2', )