-
Notifications
You must be signed in to change notification settings - Fork 10.5k
build: switch gyb to Python3 #32127
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
build: switch gyb to Python3 #32127
Conversation
@swift-ci please clean test |
CC: @nathawes - you may also be interested in this since SwiftSyntax depends on gyb'ed output |
Build failed |
Build failed |
@swift-ci please test macOS platform |
@swift-ci please test Linux platform |
Build failed |
Build failed |
@swift-ci please test Linux platform |
Build failed |
@swift-ci please test Linux platform |
@nathawes I can't seem to figure out why the tests on macOS are failing with this change. Happen to have any hints on why the tests are hitting this error:
|
swift-syntax repo also invokes gyb via its build-script to generate its swift code. If swift-side uses python3 and that function generates different hash than python2 from swift-syntax, there will be a mismatch. |
@akyrtzi ah, thanks for that explanation. I'll try to get swift-syntax synced up then |
@swift-ci please test macOS platform |
Build failed |
@swift-ci please test macOS platform |
Build failed |
@swift-ci please clean test |
Build failed |
Build failed |
Change the build system to invoke gyb with python3 instead of python2.
05330c4
to
102621a
Compare
@swift-ci please test |
Build failed |
This adjusts the code to run identically under python 2 and python 3. We would previously fail to digest the content in Python 3 as the `map` is not equivalent. This now results in the same encoding as Python 2.
102621a
to
4240a90
Compare
@swift-ci Please Python lint |
@swift-ci please test |
@swift-ci please test Windows platform |
/cc @shahmishal |
Thanks @compnerd! |
Change the build system to invoke gyb with python3 instead of python2.
Replace this paragraph with a description of your changes and rationale. Provide links to external references/discussions if appropriate.
Resolves SR-NNNN.