You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by ko...@apache.org on 2023/12/01 00:45:12 UTC

(arrow) branch main updated: GH-38984: [Python][Packaging] Verification of wheels on AlmaLinux 8 are failing due to missing pip (#38985)

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

kou 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 2760faf461 GH-38984: [Python][Packaging] Verification of wheels on AlmaLinux 8 are failing due to missing pip (#38985)
2760faf461 is described below

commit 2760faf461acfa4f2e32adf660448fa3e0b02018
Author: Raúl Cumplido <ra...@gmail.com>
AuthorDate: Thu Nov 30 18:45:05 2023 -0600

    GH-38984: [Python][Packaging] Verification of wheels on AlmaLinux 8 are failing due to missing pip (#38985)
    
    ### Rationale for this change
    
    Almalinux 8 has been updated from 8.8 to 8.9. When using 8.9 python3 seems to be shipped without pip as  the command `python3 -m pip install -U pip` fails to find pip.
    
    ### What changes are included in this PR?
    
    Use the [ensurepip package](https://docs.python.org/3/library/ensurepip.html) which provides support for bootstrapping the pip installer into an existing Python installation.
    
    ### Are these changes tested?
    
    Yes via archery.
    
    ### Are there any user-facing changes?
    
    No
    * Closes: #38984
    
    Authored-by: Raúl Cumplido <ra...@gmail.com>
    Signed-off-by: Sutou Kouhei <ko...@clear-code.com>
---
 dev/release/setup-rhel-rebuilds.sh | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/dev/release/setup-rhel-rebuilds.sh b/dev/release/setup-rhel-rebuilds.sh
index 9cdc503215..702e6523a9 100755
--- a/dev/release/setup-rhel-rebuilds.sh
+++ b/dev/release/setup-rhel-rebuilds.sh
@@ -44,8 +44,6 @@ dnf -y install \
   ninja-build \
   nodejs \
   openssl-devel \
-  python38-devel \
-  python38-pip \
   ruby-devel \
   sqlite-devel \
   vala-devel \
@@ -54,5 +52,5 @@ dnf -y install \
 
 npm install -g yarn
 
-python3 -m pip install -U pip
+python3 -m ensurepip --upgrade
 alternatives --set python /usr/bin/python3