You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by ra...@apache.org on 2024/01/10 10:53:11 UTC

(arrow) 02/03: GH-39537: [Packaging][Python] Add a numpy<2 pin to the install requirements for the 15.x release branch (#39538)

This is an automated email from the ASF dual-hosted git repository.

raulcd pushed a commit to branch maint-15.0.0
in repository https://gitbox.apache.org/repos/asf/arrow.git

commit f0dae8975798e8abb9bb31ef8d96ad78fe07a338
Author: Joris Van den Bossche <jo...@gmail.com>
AuthorDate: Wed Jan 10 09:11:11 2024 +0100

    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 <jo...@gmail.com>
    Signed-off-by: Joris Van den Bossche <jo...@gmail.com>
---
 python/setup.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/python/setup.py b/python/setup.py
index b1c825d84d..51eb40af08 100755
--- a/python/setup.py
+++ b/python/setup.py
@@ -449,7 +449,7 @@ class BinaryDistribution(Distribution):
 
 
 install_requires = (
-    'numpy >= 1.16.6',
+    'numpy >= 1.16.6, <2',
 )