Skip to content

Commit 477991d

Browse files
committed
channel priority
1 parent abe09b5 commit 477991d

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

ci/install_travis.sh

+7-9
Original file line numberDiff line numberDiff line change
@@ -54,17 +54,15 @@ conda config --set always_yes true --set changeps1 false || exit 1
5454
conda update -q conda
5555

5656
echo "[add channels]"
57+
# add the pandas channel to take priority
58+
# to add extra packages
59+
conda config --add channels pandas || exit 1
60+
conda config --remove channels defaults || exit 1
61+
conda config --add channels defaults || exit 1
62+
5763
if [ "$CONDA_FORGE" ]; then
58-
# use only the conda-forge channels
59-
conda config --remove channels defaults || exit 1
64+
# add conda-forge channel as priority
6065
conda config --add channels conda-forge || exit 1
61-
conda config --add channels defaults || exit 1
62-
else
63-
# add the pandas channel to take priority
64-
# to add extra packages
65-
conda config --add channels pandas || exit 1
66-
conda config --remove channels defaults || exit 1
67-
conda config --add channels defaults || exit 1
6866
fi
6967

7068
# Useful for debugging any issues with conda

0 commit comments

Comments
 (0)