-
Notifications
You must be signed in to change notification settings - Fork 10.6k
Python 2/3 compat: gyb, gyb_sourcekit_support, gyb_syntax_support, li… #32109
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
Conversation
|
@swift-ci please clean test |
|
This is a rebased change that should hopefully enable |
|
@drodriguez, @stephentyrone - you might remember this change from the original PR that @gwynne put up quite some time ago. I think that at this point we really do need to start migrating towards python 3. LLVM has decided that they will be dropping support for Python 2 at the end of the year, with the builds upstream now preferring python 3. Python 3 is easily available now (though there are some issues to be ironed out - @shahmishal and @JDevlieghere are probably better than I to explain the macOS specific issues). python.org has EOL'ed Python 2 at the beginning of this year. I'm hoping that we might be able to migrate the bulk of the day-to-day builds to python 3 in an incremental fashion. |
|
CC: @tachoknight |
|
Build failed |
d981de7 to
78ba971
Compare
|
@swift-ci please test |
|
Build failed |
|
Build failed |
|
Build failed |
fb3a003 to
eb8d1ad
Compare
|
@swift-ci please test |
|
@swift-ci please test Windows platform |
|
Build failed |
|
Build failed |
Adjust the python imports to be python2 and python3 compatible to enable gyb to be switched over to python3.
eb8d1ad to
23f2d34
Compare
|
@swift-ci please test |
|
Build failed |
|
@swift-ci please test Linux platform |
|
@swift-ci please test Windows platform |
|
Build failed |
|
@swift-ci please test Linux platform |
|
Build failed |
|
@swift-ci please test Linux platform |
|
Build failed |
|
@swift-ci please test Linux platform |
|
Build failed |
|
@swift-ci please test Linux platform |
|
@compnerd Looks like this broke the python lint test. I saw this on a PR test: https://ci.swift.org/job/swift-PR-osx/21352/console Though, I didn't see it on other builds. |
|
@eeckstein bleh, didn't seem to show up in the testing. I'll take a look, thanks for pointing this out! |
|
I wonder if its a python2 vs python3 issue |
|
@tachoknight unfortunately I had already replicated the issue and was working on fixing it. Thanks though! #32157 should address the linter warnings |
|
@tachoknight - I think that it might be interesting/useful to see if you can drop any of that patch now. I suspect that it is possible. I think that with the other change that I have in flight we are pretty close to defaulting to python3 on the Swift build :-D |
…ne-directive
Replace this paragraph with a description of your changes and rationale. Provide links to external references/discussions if appropriate.
Resolves SR-NNNN.