-
-
Notifications
You must be signed in to change notification settings - Fork 648
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
When building a pex in release.sh, build it for all supported ABIs. #7393
When building a pex in release.sh, build it for all supported ABIs. #7393
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.
Thank you Stu for figuring this out!
Will approve after Python 3 is confirmed working.
@@ -569,29 +569,35 @@ function build_pex() { | |||
# If $1 == "fetch", fetches the linux and OSX wheels which were built on travis. | |||
local mode="$1" | |||
|
|||
local linux_platform="linux_x86_64" | |||
local osx_platform="macosx_10.11_x86_64" | |||
local linux_platform_noabi="linux_x86_64" |
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.
Nit
local linux_platform_noabi="linux_x86_64" | |
local linux_platform_no_abi="linux_x86_64" |
local linux_platform="linux_x86_64" | ||
local osx_platform="macosx_10.11_x86_64" | ||
local linux_platform_noabi="linux_x86_64" | ||
local osx_platform_noabi="macosx_10.11_x86_64" |
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.
Nit
local osx_platform_noabi="macosx_10.11_x86_64" | |
local osx_platform_no_abi="macosx_10.11_x86_64" |
platform was no longer defined.
Problem
After #7235, we began building wheels for multiple ABIs and platforms, but when building a pex, we were allowing
pex
to choose which ABI to use in the outputpex
, which could result in an unusable output pex: see #7383.Solution
Explicitly include all ABIs when constructing a pex with
-p
.Result
Released and nightly pexes will be larger, but much more compatible. Fixes #7383.