Always use target's attributes to set Python version (#16959)
Fixes: https://github.com/bazelbuild/bazel/issues/16935 RELNOTES[INC]: This changes the behavior of Python version in exec/host configuration. Mitigation is to set Python version on the targets. PiperOrigin-RevId: 493804390 Change-Id: I3a4d787e7075d2b76835faf04d4c4e04c9de85b4 Co-authored-by:Googler <ilist@google.com>
Showing
- src/main/java/com/google/devtools/build/lib/rules/python/PythonOptions.java 12 additions, 3 deletions...google/devtools/build/lib/rules/python/PythonOptions.java
- src/main/java/com/google/devtools/build/lib/rules/python/PythonVersionTransition.java 2 additions, 8 deletions...tools/build/lib/rules/python/PythonVersionTransition.java
Please register or sign in to comment