Skip to content

Cherry-pick Python3 changes to apple/stable/20210107 #2804

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

varungandhi-apple
Copy link

These changes were missing since we branched after they were merged, which is annoying for developers at their desks as they need to use python3 path/to/lit.py explicitly.

@varungandhi-apple varungandhi-apple requested a review from yln April 6, 2021 22:44
Julian Lettner added 2 commits April 6, 2021 15:45
We can now use Python3.  Let's use `os.cpu_count()` to cleanup this
helper.

Differential Revision: https://reviews.llvm.org/D94734

(cherry picked from commit 9946b16)
Update shebang to always use Python3 when executing `lit.py` directly.

A previous change of mine [1] revealed that we still use Python2 on some
bot configurations that invoke `llvm/utils/lit/lit.py` as a script
directly (instead of `python3 path/to/lit.py`).

[1] https://reviews.llvm.org/D94734

Differential Revision: https://reviews.llvm.org/D95393

(cherry picked from commit 6f1d4fb)
@varungandhi-apple
Copy link
Author

@swift-ci test

@varungandhi-apple
Copy link
Author

@swift-ci test macOS

@varungandhi-apple varungandhi-apple merged commit 9915aab into swiftlang:apple/stable/20210107 Apr 7, 2021
@varungandhi-apple varungandhi-apple deleted the vg-python3-is-lit branch April 7, 2021 18:48
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