Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GH-44277: [CI] Use Miniforge instead of Mambaforge #44278

Merged
merged 1 commit into from
Oct 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ci/docker/conda.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 6 additions & 3 deletions ci/scripts/install_conda.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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

Expand Down
4 changes: 2 additions & 2 deletions dev/release/verify-release-candidate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -441,15 +441,15 @@ 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
if [ ! -d "${prefix}" ]; then
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
Expand Down
2 changes: 1 addition & 1 deletion dev/tasks/conda-recipes/azure.win.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion python/examples/minimal_build/build_conda.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading