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
This commit is contained in:
Dan Willemsen 2023-08-22 19:08:11 -04:00
parent 1311c1af27
commit b1094d602b

View file

@ -454,7 +454,8 @@ func (p *PythonLibraryModule) GenerateAndroidBuildActions(ctx android.ModuleCont
// generate the zipfile of all source and data files // generate the zipfile of all source and data files
p.srcsZip = p.createSrcsZip(ctx, pkgPath) 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 { func isValidPythonPath(path string) error {