From b1094d602bbd1fc6d4d60ace63ff82a92b479b23 Mon Sep 17 00:00:00 2001 From: Dan Willemsen Date: Tue, 22 Aug 2023 19:08:11 -0400 Subject: [PATCH] Temporarily disable python precompilation for py3.11 The precompilation logic assumes that the source tree matches the python prebuilts, which is not necessarily true. This very much breaks during major version upgrades, so just disable precompilation temporarily while we generate new prebuilts. Bug: 278602456 Test: treehugger Change-Id: Idb206bb1d971e8c0fa556c75419623c3bc457898 --- python/python.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python/python.go b/python/python.go index 6c837a888..e6bdeee2c 100644 --- a/python/python.go +++ b/python/python.go @@ -454,7 +454,8 @@ func (p *PythonLibraryModule) GenerateAndroidBuildActions(ctx android.ModuleCont // generate the zipfile of all source and data files p.srcsZip = p.createSrcsZip(ctx, pkgPath) - p.precompiledSrcsZip = p.precompileSrcs(ctx) + // TODO(b/278602456): precompilation temporarily disabled for python3.11 upgrade + p.precompiledSrcsZip = p.srcsZip //p.precompileSrcs(ctx) } func isValidPythonPath(path string) error {