raulcd commented on code in PR #49259:
URL: https://github.com/apache/arrow/pull/49259#discussion_r2894801701


##########
python/setup.py:
##########
@@ -1,483 +0,0 @@
-#!/usr/bin/env python
-
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-#
-#   http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-import contextlib
-import os
-import os.path
-from os.path import join as pjoin
-import re
-import shlex
-import shutil
-import sys
-import warnings
-
-if sys.version_info >= (3, 10):
-    import sysconfig
-else:
-    # Get correct EXT_SUFFIX on Windows (https://bugs.python.org/issue39825)
-    from distutils import sysconfig
-
-from setuptools import setup, Extension, Distribution
-from setuptools.command.sdist import sdist
-
-from Cython.Distutils import build_ext as _build_ext
-import Cython
-
-# Check if we're running 64-bit Python
-is_64_bit = sys.maxsize > 2**32
-
-# We can't use sys.platform in a cross-compiling situation
-# as here it may be set to the host not target platform
-is_emscripten = (
-    sysconfig.get_config_var("SOABI")
-    and sysconfig.get_config_var("SOABI").find("emscripten") != -1
-)
-
-
-if Cython.__version__ < '3.1':
-    raise Exception(
-        'Please update your Cython version. Supported Cython >= 3.1')

Review Comment:
   That's a good point. Thanks @jorisvandenbossche . I've added the check on 
CMake and tested locally with an old Cython version and with >=3.1 works as 
expected:
   ```
     -- Found NumPy version: 2.3.4
     -- NumPy include dir: 
/home/raulcd/code/pyarrow-dev/lib/python3.13/site-packages/numpy/_core/include
     CMake Error at CMakeLists.txt:287 (message):
       Please update your Cython version.  Supported Cython >= 3.1, found 3.0.0
   
   
     -- Configuring incomplete, errors occurred!
   
     *** CMake configuration failed
     error: subprocess-exited-with-error
     
     × Building wheel for pyarrow (pyproject.toml) did not run successfully.
     │ exit code: 1
     ╰─> See above for output.
     
     note: This error originates from a subprocess, and is likely not a problem 
with pip.
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to