Skip to content

Commit

Permalink
Configure libmamba
Browse files Browse the repository at this point in the history
  • Loading branch information
guyer committed Dec 4, 2023
1 parent efcc78b commit 0b2b295
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .azure/pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ stages:
condition: startsWith(variables.image, 'windows')
- bash: |
mamba create --quiet --name wheelEnvironment --channel conda-forge python=3.10 mamba
conda create --quiet --name wheelEnvironment --channel conda-forge python=3.10
source activate wheelEnvironment
mkdir tmp
cd tmp
Expand Down
12 changes: 2 additions & 10 deletions .azure/templates/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,19 +31,11 @@ steps:
- bash: |
conda config --set always_yes yes --set changeps1 no
conda config --remove channels defaults
if [[ ${{ parameters.python_version }} != "2.7" ]]; then
# mamba doesn't work in Py2.7
mamba install --quiet --channel conda-forge mamba
fi
conda config --set solver libmamba
displayName: Create Anaconda environment
- bash: |
if [[ ${{ parameters.python_version }} == "2.7" ]]; then
# mamba doesn't work in Py2.7
conda create --yes --quiet --name myEnvironment --channel conda-forge python=${{ parameters.python_version }} ${{ parameters.conda_packages }}
else
mamba create --yes --quiet --name myEnvironment --channel conda-forge python=${{ parameters.python_version }} ${{ parameters.conda_packages }}
fi
conda create --yes --quiet --name myEnvironment --channel conda-forge python=${{ parameters.python_version }} ${{ parameters.conda_packages }}
displayName: Install Anaconda packages
- bash: |
Expand Down

0 comments on commit 0b2b295

Please sign in to comment.