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

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

commit fc60cfabf67d6e83e5181bb165b96f343670d879
Author: Krisztián Szűcs <[email protected]>
AuthorDate: Thu Nov 4 21:38:35 2021 +0100

    ARROW-14584: [Python][CI] Python sdist installation fails with latest 
setuptools 58.5
    
    This patch should go to the 6.0.1 release.
    
    Closes #11604 from kszucs/ARROW-14584
    
    Authored-by: Krisztián Szűcs <[email protected]>
    Signed-off-by: Krisztián Szűcs <[email protected]>
---
 python/pyproject.toml              | 5 +++--
 python/requirements-wheel-test.txt | 4 +---
 2 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/python/pyproject.toml b/python/pyproject.toml
index acea5ac..656d95c 100644
--- a/python/pyproject.toml
+++ b/python/pyproject.toml
@@ -18,10 +18,11 @@
 [build-system]
 requires = [
     "cython >= 0.29",
-    "numpy==1.16.6; python_version<'3.9'",
+    "numpy==1.16.6; python_version<'3.8'",
+    "numpy==1.17.3; python_version=='3.8'",
     "numpy==1.19.4; python_version=='3.9'",
     "numpy==1.21.3; python_version>'3.9'",
-    "setuptools",
+    "setuptools < 58.5",  # ARROW-14584
     "setuptools_scm",
     "wheel"
 ]
diff --git a/python/requirements-wheel-test.txt 
b/python/requirements-wheel-test.txt
index 55bf8d8..d8af73d 100644
--- a/python/requirements-wheel-test.txt
+++ b/python/requirements-wheel-test.txt
@@ -23,6 +23,4 @@ pandas<1.1.0;  platform_system == "Darwin"  and 
platform_machine != "arm64"   an
 pandas;        platform_system == "Darwin"  and platform_machine != "arm64"   
and python_version >= "3.8"
 pandas;        platform_system == "Darwin"  and platform_machine == "arm64"
 pandas<1.1.0;  platform_system == "Windows"                                   
and python_version <  "3.8"
-pandas;        platform_system == "Windows"                                   
and python_version >= "3.8" and python_version <= "3.9"
-
-# TODO(kszucs): remove the python_version <= "3.9" constraint once 
https://github.com/scipy/oldest-supported-numpy/pull/27 gets merged
+pandas;        platform_system == "Windows"                                   
and python_version >= "3.8"

Reply via email to