Skip to content

Commit f72ec7a

Browse files
committed
Remove BUILD_BROKEN_USES_SOONG_PYTHON2_MODULES
It's been available for over a year, lets progress the python3 migration by removing it. Bug: 203436762 Test: Presubmits Change-Id: I4193767a6a72a527eeca56fbabe477bee9e21c7a
1 parent 492eea8 commit f72ec7a

File tree

3 files changed

+5
-11
lines changed

3 files changed

+5
-11
lines changed

Changes.md

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,9 @@ within a product configuration .mk file, board config .mk file, or buildspec.mk.
4343
The path set when running builds now makes the `python` executable point to python 3,
4444
whereas on previous versions it pointed to python 2. If you still have python 2 scripts,
4545
you can change the shebang line to use `python2` explicitly. This only applies for
46-
scripts run directly from makefiles, or from soong genrules. This behavior can be
47-
temporarily overridden by setting the `BUILD_BROKEN_PYTHON_IS_PYTHON2` environment
48-
variable to `true`. It's only an environment variable and not a product config variable
49-
because product config sometimes calls python code.
50-
51-
In addition, `python_*` soong modules no longer allow python 2. This can be temporarily
52-
overridden by setting the `BUILD_BROKEN_USES_SOONG_PYTHON2_MODULES` product configuration
53-
variable to `true`.
46+
scripts run directly from makefiles, or from soong genrules.
47+
48+
In addition, `python_*` soong modules no longer allow python 2.
5449

5550
Python 2 is slated for complete removal in V.
5651

core/config.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@ $(KATI_obsolete_var BOARD_PREBUILT_PVMFWIMAGE,pvmfw.bin is now built in AOSP and
173173
$(KATI_obsolete_var BUILDING_PVMFW_IMAGE,BUILDING_PVMFW_IMAGE is no longer used)
174174
$(KATI_obsolete_var BOARD_BUILD_SYSTEM_ROOT_IMAGE)
175175
$(KATI_obsolete_var FS_GET_STATS)
176+
$(KATI_obsolete_var BUILD_BROKEN_USES_SOONG_PYTHON2_MODULES)
176177

177178
# Used to force goals to build. Only use for conditionally defined goals.
178179
.PHONY: FORCE
@@ -363,8 +364,7 @@ endif
363364
# configs, generally for cross-cutting features.
364365

365366
# Build broken variables that should be treated as booleans
366-
_build_broken_bool_vars := \
367-
BUILD_BROKEN_USES_SOONG_PYTHON2_MODULES \
367+
_build_broken_bool_vars :=
368368

369369
# Build broken variables that should be treated as lists
370370
_build_broken_list_vars := \

core/soong_config.mk

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,6 @@ $(call add_json_bool, BuildBrokenClangCFlags, $(filter true,$(BUILD
286286
$(call add_json_bool, GenruleSandboxing, $(if $(GENRULE_SANDBOXING),$(filter true,$(GENRULE_SANDBOXING)),$(if $(filter true,$(BUILD_BROKEN_GENRULE_SANDBOXING)),,true)))
287287
$(call add_json_bool, BuildBrokenEnforceSyspropOwner, $(filter true,$(BUILD_BROKEN_ENFORCE_SYSPROP_OWNER)))
288288
$(call add_json_bool, BuildBrokenTrebleSyspropNeverallow, $(filter true,$(BUILD_BROKEN_TREBLE_SYSPROP_NEVERALLOW)))
289-
$(call add_json_bool, BuildBrokenUsesSoongPython2Modules, $(filter true,$(BUILD_BROKEN_USES_SOONG_PYTHON2_MODULES)))
290289
$(call add_json_bool, BuildBrokenVendorPropertyNamespace, $(filter true,$(BUILD_BROKEN_VENDOR_PROPERTY_NAMESPACE)))
291290
$(call add_json_bool, BuildBrokenIncorrectPartitionImages, $(filter true,$(BUILD_BROKEN_INCORRECT_PARTITION_IMAGES)))
292291
$(call add_json_list, BuildBrokenInputDirModules, $(BUILD_BROKEN_INPUT_DIR_MODULES))

0 commit comments

Comments
 (0)