diff options
author | Cole Faust <colefaust@google.com> | 2022-09-09 19:41:47 -0700 |
---|---|---|
committer | Cole Faust <colefaust@google.com> | 2023-03-09 11:55:29 -0800 |
commit | 189905be98dd897fd73e27e35b1f5a7d97e01099 (patch) | |
tree | c29537df8df63e7c77cfc6d1581a4679bc94a4fd /Changes.md | |
parent | cee4ebf1c3456f48e6b919ba4b681012bd43f227 (diff) | |
download | build-189905be98dd897fd73e27e35b1f5a7d97e01099.tar.gz |
Add BUILD_BROKEN_USES_SOONG_PYTHON2_MODULES
See other cl in this topic for more details.
Bug: 203436762
Test: m nothing
Change-Id: I76725afece50a022aec611091ef4dead5ad3449a
Diffstat (limited to 'Changes.md')
-rw-r--r-- | Changes.md | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/Changes.md b/Changes.md index 8979e3091c..daebd5231a 100644 --- a/Changes.md +++ b/Changes.md @@ -1,5 +1,21 @@ # Build System Changes for Android.mk Writers +## Python 2 to 3 migration + +The path set when running builds now makes the `python` executable point to python 3, +whereas on previous versions it pointed to python 2. If you still have python 2 scripts, +you can change the shebang line to use `python2` explicitly. This only applies for +scripts run directly from makefiles, or from soong genrules. This behavior can be +temporarily overridden by setting the `BUILD_BROKEN_PYTHON_IS_PYTHON2` environment +variable to `true`. It's only an environment variable and not a product config variable +because product config sometimes calls python code. + +In addition, `python_*` soong modules no longer allow python 2. This can be temporarily +overridden by setting the `BUILD_BROKEN_USES_SOONG_PYTHON2_MODULES` product configuration +variable to `true`. + +Python 2 is slated for complete removal in V. + ## Stop referencing sysprop_library directly from cc modules For the migration to Bazel, we are no longer mapping sysprop_library targets @@ -818,7 +834,7 @@ for this option to exist. ### Stop using clang property -Clang has been deleted from Soong. To fix any build errors, remove the clang +The clang property has been deleted from Soong. To fix any build errors, remove the clang property from affected Android.bp files using bpmodify. |