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 6863f504e0 GH-44277: [CI] Use Miniforge instead of Mambaforge (#44278)
6863f504e0 is described below

commit 6863f504e05da6a23507b948cf1f0b3b9f5a0250
Author: Antoine Pitrou <[email protected]>
AuthorDate: Tue Oct 1 15:01:15 2024 +0200

    GH-44277: [CI] Use Miniforge instead of Mambaforge (#44278)
    
    Mambaforge is being deprecated upstream in favor of Miniforge: 
https://conda-forge.org/news/2024/07/29/sunsetting-mambaforge/
    
    * GitHub Issue: #44277
    
    Authored-by: Antoine Pitrou <[email protected]>
    Signed-off-by: Raúl Cumplido <[email protected]>
---
 ci/docker/conda.dockerfile                   | 4 ++--
 ci/scripts/install_conda.sh                  | 9 ++++++---
 dev/release/verify-release-candidate.sh      | 4 ++--
 dev/tasks/conda-recipes/azure.win.yml        | 2 +-
 python/examples/minimal_build/build_conda.sh | 2 +-
 5 files changed, 12 insertions(+), 9 deletions(-)

diff --git a/ci/docker/conda.dockerfile b/ci/docker/conda.dockerfile
index e552648bd8..fbd81903b0 100644
--- a/ci/docker/conda.dockerfile
+++ b/ci/docker/conda.dockerfile
@@ -25,9 +25,9 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
     && apt-get clean \
     && rm -rf /var/lib/apt/lists/*
 
-# install conda and mamba via mambaforge
+# install conda and mamba via miniforge
 COPY ci/scripts/install_conda.sh /arrow/ci/scripts/
-RUN /arrow/ci/scripts/install_conda.sh mambaforge latest /opt/conda
+RUN /arrow/ci/scripts/install_conda.sh miniforge3 latest /opt/conda
 ENV PATH=/opt/conda/bin:$PATH
 
 # create a conda environment
diff --git a/ci/scripts/install_conda.sh b/ci/scripts/install_conda.sh
index 2e86416302..8539a0b2bb 100755
--- a/ci/scripts/install_conda.sh
+++ b/ci/scripts/install_conda.sh
@@ -20,7 +20,7 @@
 set -e
 
 if [ "$#" -ne 3 ]; then
-  echo "Usage: $0 <installer: miniforge or mambaforge> <version> <prefix>"
+  echo "Usage: $0 <installer: miniforge3> <version> <prefix>"
   exit 1
 fi
 
@@ -30,8 +30,11 @@ installer=$1
 version=$2
 prefix=$3
 
-echo "Downloading Miniconda installer..."
-wget -nv 
https://github.com/conda-forge/miniforge/releases/latest/download/${installer^}-${platform}-${arch}.sh
 -O /tmp/installer.sh
+download_url=https://github.com/conda-forge/miniforge/releases/latest/download/${installer^}-${platform}-${arch}.sh
+
+echo "Downloading Miniconda installer from ${download_url} ..."
+
+wget -nv ${download_url} -O /tmp/installer.sh
 bash /tmp/installer.sh -b -p ${prefix}
 rm /tmp/installer.sh
 
diff --git a/dev/release/verify-release-candidate.sh 
b/dev/release/verify-release-candidate.sh
index 4cff3c975f..c1419b30d8 100755
--- a/dev/release/verify-release-candidate.sh
+++ b/dev/release/verify-release-candidate.sh
@@ -441,7 +441,7 @@ install_go() {
 install_conda() {
   # Setup short-lived miniconda for Python and integration tests
   show_info "Ensuring that Conda is installed..."
-  local prefix=$ARROW_TMPDIR/mambaforge
+  local prefix=$ARROW_TMPDIR/miniforge
 
   # Setup miniconda only if the directory doesn't exist yet
   if [ "${CONDA_ALREADY_INSTALLED:-0}" -eq 0 ]; then
@@ -449,7 +449,7 @@ install_conda() {
       show_info "Installing miniconda at ${prefix}..."
       local arch=$(uname -m)
       local platform=$(uname)
-      local 
url="https://github.com/conda-forge/miniforge/releases/latest/download/Mambaforge-${platform}-${arch}.sh";
+      local 
url="https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-${platform}-${arch}.sh";
       curl -sL -o miniconda.sh $url
       bash miniconda.sh -b -p $prefix
       rm -f miniconda.sh
diff --git a/dev/tasks/conda-recipes/azure.win.yml 
b/dev/tasks/conda-recipes/azure.win.yml
index ee4533a3ce..7f47f5ae4c 100755
--- a/dev/tasks/conda-recipes/azure.win.yml
+++ b/dev/tasks/conda-recipes/azure.win.yml
@@ -19,7 +19,7 @@ jobs:
         scriptSource: inline
         script: |
           import urllib.request
-          url = 
'https://github.com/conda-forge/miniforge/releases/latest/download/Mambaforge-Windows-x86_64.exe'
+          url = 
'https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-Windows-x86_64.exe'
           path = r"$(Build.ArtifactStagingDirectory)/Miniforge.exe"
           urllib.request.urlretrieve(url, path)
 
diff --git a/python/examples/minimal_build/build_conda.sh 
b/python/examples/minimal_build/build_conda.sh
index e90c800ae2..4c79eeda71 100755
--- a/python/examples/minimal_build/build_conda.sh
+++ b/python/examples/minimal_build/build_conda.sh
@@ -34,7 +34,7 @@ git config --global --add safe.directory $ARROW_ROOT
 # Run these only once
 
 function setup_miniconda() {
-  
MINICONDA_URL="https://github.com/conda-forge/miniforge/releases/latest/download/Mambaforge-Linux-x86_64.sh";
+  
MINICONDA_URL="https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-Linux-x86_64.sh";
   wget -O miniconda.sh $MINICONDA_URL
   bash miniconda.sh -b -p $MINICONDA
   rm -f miniconda.sh

Reply via email to