Skip to content

Commit

Permalink
Merge pull request #461 from djhoese/bugfix-mamba2
Browse files Browse the repository at this point in the history
Fix mamba installation to work when installing dependencies
  • Loading branch information
bsipocz committed Sep 24, 2020
2 parents 5f04682 + c924778 commit 7393396
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions travis/setup_dependencies_common.sh
Expand Up @@ -168,13 +168,6 @@ is_number='[0-9]'
is_eq_number='=[0-9]'
is_eq_float="=[0-9]+\.[0-9]+"

if [[ $MAMBA == True ]]; then
conda install -c conda-forge mamba;
CONDA_INSTALL_COMMAND='mamba install';
else
CONDA_INSTALL_COMMAND='conda install';
fi

if [[ -z $PIP_FALLBACK ]]; then
PIP_FALLBACK=true
fi
Expand All @@ -197,7 +190,7 @@ fi
# release to release. Add note here if version is pinned due to a bug upstream.
if [[ -z $CONDA_VERSION ]]; then
if [[ $MAMBA == True ]]; then
CONDA_VERSION=4.8.4
CONDA_VERSION=">=4.8"
else
CONDA_VERSION=4.7.11
fi
Expand Down Expand Up @@ -245,7 +238,6 @@ if [[ $PYTHON_VERSION == 3.4* ]]; then
conda config --set restore_free_channel true
fi


# CONDA
if [[ -z $CONDA_ENVIRONMENT ]]; then
retry_on_known_error conda create $QUIET -n test $PYTHON_OPTION
Expand All @@ -271,6 +263,14 @@ if [[ $SETUP_CMD == egg_info ]]; then
return # no more dependencies needed
fi

# install mamba and use it from now on
if [[ $MAMBA == True ]]; then
CONDA_INSTALL_COMMAND='mamba install'
conda install -c conda-forge mamba
else
CONDA_INSTALL_COMMAND='conda install'
fi

# CORE DEPENDENCIES

if [[ ! -z $PYTEST_VERSION && $PYTEST_VERSION != dev* ]]; then
Expand Down

0 comments on commit 7393396

Please sign in to comment.