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
diff --git a/python/python.go b/python/python.go
index 6c837a8..e6bdeee 100644
--- a/python/python.go
+++ b/python/python.go
@@ -454,7 +454,8 @@
// 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 {