python3: Fix __pycache__ files included in python3-light
authorJeffery To <jeffery.to@gmail.com>
Fri, 12 May 2023 11:40:11 +0000 (19:40 +0800)
committerJeffery To <jeffery.to@gmail.com>
Wed, 24 May 2023 04:33:00 +0000 (12:33 +0800)
commit3d428035787aef7e67ca99d1b6bc4a4b91f850c5
tree2864564512d64c0f45644cf327a4671efa24638f
parentcc2726f9e5865a2b1f9feae88b755a787fe0b8cb
python3: Fix __pycache__ files included in python3-light

003-do-not-run-distutils-tests.patch was removed in
4e05541782edeb06b51d691dadf52648df24c940. This patch stopped "make
install" from, among other things, running compileall.

When this patch was removed, "make install" ran compileall as normal and
created bytecode files in __pycache__ directories. These files were then
packaged in python3-light.

This adds a patch to stop compileall from being run during "make
install".

Fixes: 4e05541782ed ("python3: bump to version 3.10.0")
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit 8a4da017902d21ac6cada21a3bb23caa5b39af0b)
lang/python/python3/Makefile
lang/python/python3/patches/003-do-not-run-compileall.patch [new file with mode: 0644]
lang/python/python3/patches/016-adjust-config-paths.patch
lang/python/python3/patches/025-choose-python-config-version.patch