-
-
Notifications
You must be signed in to change notification settings - Fork 25.3k
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
[MRG] Always download latest Miniconda for Travis jobs #8857
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some comments
build_tools/travis/install.sh
Outdated
wget https://repo.continuum.io/miniconda/Miniconda-3.6.0-Linux-x86_64.sh \ | ||
-O miniconda.sh | ||
if [[ ! -f miniconda.sh ]]; then | ||
if [[ "$PYTHON_VERSION" == "2.7" ]]; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would always download the Miniconda3 installer and use -p /home/travis/miniconda
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So the Miniconda3 installer works under py2.7? Interesting..
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh duh, it doesn't matter since you're specifying a Python version when creating the env. whoops
build_tools/travis/install.sh
Outdated
chmod +x miniconda.sh && ./miniconda.sh -b | ||
cd .. | ||
export PATH=/home/travis/miniconda/bin:$PATH |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Keep these two lines
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we still want conda update -y conda
, instead of pinning conda
to the version corresponding to the latest "official" release from Continuum? I suppose it can't hurt..
db82a6b
to
b1d82be
Compare
The cached |
I'll do it. To be honest the caching of miniconda.sh is premature optimization. It takes less than 3s on my computer ... |
4f73ff6
to
5be3a65
Compare
I checked in joblib and the download of the miniconda installer takes less than 1s on Travis. We should really remove the caching of miniconda.sh. Bonus points if you do it in this PR! |
@lesteve great, this should be ready to go! |
I put back the debugging Having said that I think the |
Travis passed, I am going to go ahead and merge this one. Thanks @naoyak ! |
Ref: #8855 (comment)
Travis builds using
conda
have been downloading a version of Miniconda from 2014 before runningconda update conda
. This change makes sure that it instead downloads the Miniconda version corresponding to the latest Anaconda release and overwrites any cachedminiconda.sh
.ping @lesteve