-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Support both Python 2 and 3 in tools (i.e. host configuration) #6443
Comments
(P1 for a feature request essentially means "this quarter", so not as urgent as P1 for a bug.) |
This crosses over into Configurability team's domain and I understand they're prioritizing it, so until we understand more I'm marking this P2. |
This is blocked on work by Configurability team to add an "execution transition". Unlike the host transition, this transition will allow for subsequent transitions such as changes to the Python version. Once that's in, we can add new attributes to rules to use this transition in place of the host transition, e.g. create Over the long term, the difference between the host configuration and the "execution platform configuration" will decrease, as more things are migrated to use platforms and toolchains rather than ad hoc flags. |
Update: This is being actively worked on by configurability team but there likely won't be anything in the 0.27 release, which is the release that will turn on Python toolchains. See #7899 for migration-related concerns. The new plan may in fact be to not create an |
Latest update is that |
FYI |
@brandjon Thanks for this hint of using |
This is required to use py3 targets as part of a genrule; cf: bazelbuild/bazel#6443 PiperOrigin-RevId: 319104056
I'll close this since Python 2 support (at least for the native rules) is going away soon. |
These messages are rarely helpful and often misleading. The associated TODO (bazelbuild#6443) was closed years ago.
We need to provide a way for
genrule
s to invoke python 3 binaries as tools. Currently thetools
attribute uses the special HOST config, which prevents switching the PY2/PY3 mode. Design doc to come.Targeting 2018 Q4.
The text was updated successfully, but these errors were encountered: