Skip to content

Fixing macOS Travis setup - #2504

Merged
nrc merged 1 commit into
rust-lang:masterfrom
davidalber:fix-travis-python-setup
Mar 2, 2018
Merged

nrc merged 1 commit into
rust-lang:masterfrom
davidalber:fix-travis-python-setup

Conversation

@davidalber

Copy link
Copy Markdown
Contributor

The macOS Travis build is broken. I believe the cause is Homebrew changed the python formula to be Python 3. Thus, when we try to brew install python3 we are really trying install the python target, which is already (currently) Python 2 in the Travis image.

I first tried fixing this by upgrading the python formula. This added a lot of time to the build, and wasn't quite working before I realized that travis-cargo does not care whether it's executing in a Python 2 or Python 3 interpreter. Thus, I just dropped the whole "try to get a Python 3 virtual environment" angle. Currently, this is running using Python 2, but I suspect that Travis will update the image sometime and it will then by Python 3.

Comment thread .travis.yml
virtualenv env -p python3 &&
virtualenv env &&
source env/bin/activate &&
python --version &&

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added this so that we can see in the logs which version of Python is being used. We could take it out, but I'm curious to see if it flips to Python 3 in the coming days. It's currently "Python 2.7.14".

@nrc
nrc merged commit 7589ebd into rust-lang:master Mar 2, 2018
@nrc

nrc commented Mar 2, 2018

Copy link
Copy Markdown
Member

Thanks!

@davidalber
davidalber deleted the fix-travis-python-setup branch March 3, 2018 00:38
frol added a commit to frol/fs-utils-rs that referenced this pull request May 2, 2018
The solution is backported from rustfmt:

* rust-lang/rustfmt#2229
* rust-lang/rustfmt#2504
Byron pushed a commit to Byron/fs-utils-rs that referenced this pull request May 9, 2018
The solution is backported from rustfmt:

* rust-lang/rustfmt#2229
* rust-lang/rustfmt#2504
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants