Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e7bd778

Browse filesBrowse files
alfaro96glemaitre
authored andcommitted
CI Use conda instead of pip to install anaconda-client (#19528)
1 parent 30e952c commit e7bd778
Copy full SHA for e7bd778

File tree

2 files changed

+15
-2
lines changed
Filter options

2 files changed

+15
-2
lines changed

‎build_tools/github/upload_anaconda.sh

Copy file name to clipboardExpand all lines: build_tools/github/upload_anaconda.sh
+5-1Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,11 @@ else
1111
ANACONDA_TOKEN="$SCIKIT_LEARN_STAGING_UPLOAD_TOKEN"
1212
fi
1313

14-
pip install git+https://github.com/Anaconda-Server/anaconda-client
14+
# Install Python 3.8 because of a bug with Python 3.9
15+
export PATH=$CONDA/bin:$PATH
16+
conda create -n upload -y python=3.8
17+
source activate upload
18+
conda install -y anaconda-client
1519

1620
# Force a replacement if the remote file already exists
1721
anaconda -t $ANACONDA_TOKEN upload --force -u $ANACONDA_ORG dist/artifact/*

‎build_tools/travis/after_success.sh

Copy file name to clipboardExpand all lines: build_tools/travis/after_success.sh
+10-1Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,16 @@ if [[ $BUILD_WHEEL == true && $TRAVIS_EVENT_TYPE != pull_request ]]; then
1818
ANACONDA_TOKEN="$SCIKIT_LEARN_STAGING_UPLOAD_TOKEN"
1919
fi
2020

21-
pip install git+https://github.com/Anaconda-Server/anaconda-client
21+
MINICONDA_URL="https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-Linux-aarch64.sh"
22+
wget $MINICONDA_URL -O miniconda.sh
23+
MINICONDA_PATH=$HOME/miniconda
24+
chmod +x miniconda.sh && ./miniconda.sh -b -p $MINICONDA_PATH
25+
26+
# Install Python 3.8 because of a bug with Python 3.9
27+
export PATH=$MINICONDA_PATH/bin:$PATH
28+
conda create -n upload -y python=3.8
29+
source activate upload
30+
conda install -y anaconda-client
2231

2332
# Force a replacement if the remote file already exists
2433
anaconda -t $ANACONDA_TOKEN upload --force -u $ANACONDA_ORG wheelhouse/*.whl

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.