summaryrefslogtreecommitdiff
path: root/python/python.go
diff options
context:
space:
mode:
author Dan Willemsen <dwillemsen@google.com> 2023-08-22 19:08:11 -0400
committer Dan Willemsen <dwillemsen@google.com> 2023-08-22 19:09:44 -0400
commitb1094d602bbd1fc6d4d60ace63ff82a92b479b23 (patch)
treedf1432440be36fe7dca882c134e71b0bfbae19f7 /python/python.go
parent1311c1af27e76d365062772acfe1d79e19219de1 (diff)
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
Diffstat (limited to 'python/python.go')
-rw-r--r--python/python.go3
1 files changed, 2 insertions, 1 deletions
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 {