-
Notifications
You must be signed in to change notification settings - Fork 262
macOS update #57
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
macOS update #57
Conversation
Thanks for this pull request! Looks pretty good to me, but I've got two minor questions:
Apart from that, I'm happy to merge this if @joerick and @tgarc don't have any remarks? I guess given the severity of the problem, it might be nice to have a patch/release for this reasonably soon? |
Though the minimal example does not exactly install |
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.
Hey mayeut, thanks a lot for this! I've made a few comments in the diff, otherwise keen to get this merged soon too.
@@ -63,7 +68,7 @@ def call(args, env=None, cwd=None, shell=False): | |||
call([python, '--version'], env=env) | |||
|
|||
# install pip & wheel | |||
call([python, '-m', 'ensurepip', '--upgrade'], env=env) | |||
call([python, get_pip_script, '--no-setuptools', '--no-wheel'], env=env) |
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.
any particular reason for --no-setuptools
and --no-wheel
?
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'd rather get the script only install pip and let the remaining as it was before.
wheel is installed shortly after.
This is also what travis-ci/dpl is doing for deployment so I guess I just did the same.
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.
👍
@@ -32,7 +32,7 @@ matrix: | |||
- "PYTHON=python3" | |||
before_install: | |||
- brew update | |||
- brew install python3 | |||
- brew outdated python || brew upgrade python |
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.
brew outdated
returns with success if python isn't installed. Perhaps this line should be brew install python || brew upgrade python
?
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.
python is installed on macOS travis-ci images.
Otherwise, I can change this by
brew install python || brew outdated python || brew upgrade python
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.
Sorry should be
brew install python && ( brew outdated python || brew upgrade python )
as install returns success even if already installed.
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.
well, I just did a test and it seems the behavior of brew install is not really consistent.
brew install python exits with 0 on my laptop (python is already installed). It exits with error code on travis-ci.
https://discourse.brew.sh/t/what-exit-code-is-brew-install-supposed-to-return-when-formula-is-already-installed/1607
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 can switch to using a brew file & brew bundle. This works:
https://travis-ci.org/mayeut/cibuildwheel/builds/361196481
Tell me if you want me to use this instead.
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 that's cool, I didn't know about brew bundle. But seems a little heavy-handed for this. Let's stick with your original for the moment.
Released as 0.7.1. thanks all! |
This PR does the following things:
brew python formula has been updated for pyhton3, c.f. https://travis-ci.org/mayeut/cibuildwheel/builds/360577716 macOS python3 errored build
With the new PyPI stuff on-going, pip is failing with required TLS 1.2, c.f. https://travis-ci.org/mayeut/cibuildwheel/builds/360577716 macOS python2 failing build
The job has been started in the brownout window enforcing TLS 1.2, c.f. Finalize TLS1.0/1.1 removal on PyPI pypi/warehouse#3411
pip 9.0.2 has been updated to support TLS 1.2 on macOS (where openSSL is too old) in Use SecureTransport on macOS pip#4454