From ebb25bd22e87df67006f07d116d3bfc43c91866d Mon Sep 17 00:00:00 2001 From: Krzysztof KosiƄski Date: Tue, 20 Sep 2022 02:16:33 +0000 Subject: Delete Python 2 embedded launcher test. There are no remaining Python 2 binaries using an embedded launcher in Android. Bug: 245854393 Test: m par_test py2-cmd py3-cmd && build/soong/python/tests/runtest.sh Change-Id: I241bbaa417060b51b4d2883011ccb43e22ace4c8 --- python/python.go | 1 - 1 file changed, 1 deletion(-) (limited to 'python/python.go') diff --git a/python/python.go b/python/python.go index 1a129737a..8fde638b4 100644 --- a/python/python.go +++ b/python/python.go @@ -265,7 +265,6 @@ func versionSplitMutator() func(android.BottomUpMutatorContext) { } if proptools.BoolDefault(props.Version.Py2.Enabled, false) { if !mctx.DeviceConfig().BuildBrokenUsesSoongPython2Modules() && - mctx.ModuleName() != "par_test" && mctx.ModuleName() != "py2-cmd" && mctx.ModuleName() != "py2-stdlib" { mctx.PropertyErrorf("version.py2.enabled", "Python 2 is no longer supported, please convert to python 3. This error can be temporarily overridden by setting BUILD_BROKEN_USES_SOONG_PYTHON2_MODULES := true in the product configuration") -- cgit v1.2.3-59-g8ed1b