Skip to content

Fixing macOS Travis setup #2504

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

Merged
merged 1 commit into from
Mar 2, 2018
Merged

Conversation

davidalber
Copy link
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.

source env/bin/activate &&
python --version &&
Copy link
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
Copy link
Member

nrc commented Mar 2, 2018

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