[go: nahoru, domu]

Skip to content
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

Adds python3_action GN target #27211

Merged
merged 1 commit into from
Jul 16, 2021
Merged

Conversation

richkadel
Copy link
Contributor

Ninja runs action scripts using the default python interpretter, and
most flutter build scripts that use python currently require python2. In
order to support python3 scripts as well, the python3_action invokes a
wrapper python2-based script via GN action target, and the wrapper
invokes the python3 interpretter with the given script.

This new target is required to support #26880, but is
broken out to a separate PR (by request) to support other more immediate
use cases.

List which issues are fixed by this PR. You must list at least one issue.

Regarding flutter/flutter#53002: Note that this is a temporary workaround for python3 scripts, while python2 is still required. Once python3 is the default, the python3_action targets can be changed to simply action, and the files in this PR will no longer be needed.

Pre-launch Checklist

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I read the Tree Hygiene wiki page, which explains my responsibilities.
  • I read and followed the Flutter Style Guide and the C++, Objective-C, Java style guides.
  • I listed at least one issue that this PR fixes in the description above.
  • I added new tests to check the change I am making or feature I am adding, or Hixie said the PR is test-exempt. See testing the engine for instructions on
    writing and running engine tests.
  • I updated/added relevant documentation (doc comments with ///).
  • I signed the CLA.
  • All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel on Discord.

@google-cla google-cla bot added the cla: yes label Jul 7, 2021
@richkadel
Copy link
Contributor Author

@chaselatta - You asked me to break out this change and move it outside of the flutter/tools/fuchsia subdirectory. This should be ready for review.

@richkadel richkadel force-pushed the python3-action branch 2 times, most recently from e99900d to 49979fe Compare July 8, 2021 14:39
@chinmaygarde
Copy link
Member

This needs to be rebased for the presubmits to pass.

@richkadel
Copy link
Contributor Author

This needs to be rebased for the presubmits to pass.

Ah, now I understand the cannot lock ref message. Thanks!

(That error message is very cryptic!)

Ninja runs `action` scripts using the default python interpretter, and
most flutter build scripts that use python currently require python2. In
order to support python3 scripts as well, the `python3_action` invokes a
wrapper python2-based script via GN `action` target, and the wrapper
invokes the python3 interpretter with the given script.

This new target is required to support flutter#26880, but is
broken out to a separate PR (by request) to support other more immediate
use cases.
@richkadel
Copy link
Contributor Author

@chinmaygarde - This finally passes. OK to merge?

@chinmaygarde
Copy link
Member

Go for it!

@richkadel
Copy link
Contributor Author

Thanks. I don't have merge privs, and Chase is OOO. Can you help?

@jason-simmons jason-simmons merged commit cf7ef6e into flutter:master Jul 16, 2021
@richkadel
Copy link
Contributor Author

Thank you @jason-simmons !

engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Jul 16, 2021
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Jul 16, 2021
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Jul 16, 2021
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Jul 16, 2021
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Jul 16, 2021
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Jul 16, 2021
moffatman pushed a commit to moffatman/engine that referenced this pull request Aug 5, 2021
Ninja runs `action` scripts using the default python interpretter, and
most flutter build scripts that use python currently require python2. In
order to support python3 scripts as well, the `python3_action` invokes a
wrapper python2-based script via GN `action` target, and the wrapper
invokes the python3 interpretter with the given script.

This new target is required to support flutter#26880, but is
broken out to a separate PR (by request) to support other more immediate
use cases.
naudzghebre pushed a commit to naudzghebre/engine that referenced this pull request Sep 2, 2021
Ninja runs `action` scripts using the default python interpretter, and
most flutter build scripts that use python currently require python2. In
order to support python3 scripts as well, the `python3_action` invokes a
wrapper python2-based script via GN `action` target, and the wrapper
invokes the python3 interpretter with the given script.

This new target is required to support flutter#26880, but is
broken out to a separate PR (by request) to support other more immediate
use cases.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
4 participants