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

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


The following commit(s) were added to refs/heads/main by this push:
     new a045770b94 GH-42006: [CI][Python] Use pip install -e instead of 
setup.py build_ext --inplace for installing pyarrow on verification script 
(#42007)
a045770b94 is described below

commit a045770b94972bb4063bde13cb95f1c5b5c8bbe8
Author: Raúl Cumplido <[email protected]>
AuthorDate: Fri Jun 7 10:16:50 2024 +0200

    GH-42006: [CI][Python] Use pip install -e instead of setup.py build_ext 
--inplace for installing pyarrow on verification script (#42007)
    
    ### Rationale for this change
    
    Due to https://github.com/apache/arrow/issues/37929 we require a higher 
version of setuptools and setuptools_scm to be installed otherwise the job 
fails with setuptools_scm failing with ` TypeError: Configuration.__init__() 
got an unexpected keyword argument 'version_file'`
    
    ### What changes are included in this PR?
    
    Remove the dependencies for the environment and let installation handle 
those using pip install -e instead of setup.py build_ext --inplace for 
installing pyarrow on verification script
    
    ### Are these changes tested?
    
    Via Archery
    
    ### Are there any user-facing changes?
    
    No
    * GitHub Issue: #42006
    
    Lead-authored-by: Raúl Cumplido <[email protected]>
    Co-authored-by: Joris Van den Bossche <[email protected]>
    Signed-off-by: Raúl Cumplido <[email protected]>
---
 dev/release/verify-release-candidate.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dev/release/verify-release-candidate.sh 
b/dev/release/verify-release-candidate.sh
index 3ed871bd53..fcaaa423a4 100755
--- a/dev/release/verify-release-candidate.sh
+++ b/dev/release/verify-release-candidate.sh
@@ -756,7 +756,7 @@ test_python() {
   show_header "Build and test Python libraries"
 
   # Build and test Python
-  maybe_setup_virtualenv "cython>=0.29.31" numpy "setuptools_scm<8.0.0" 
setuptools
+  maybe_setup_virtualenv
   maybe_setup_conda --file ci/conda_env_python.txt
 
   if [ "${USE_CONDA}" -gt 0 ]; then
@@ -788,7 +788,7 @@ test_python() {
   pushd python
 
   # Build pyarrow
-  python setup.py build_ext --inplace
+  python -m pip install -e .
 
   # Check mandatory and optional imports
   python -c "

Reply via email to