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)
committerRosen Penev <rosenp@gmail.com>
Wed, 24 May 2023 03:04:33 +0000 (06:04 +0300)
commit8a4da017902d21ac6cada21a3bb23caa5b39af0b
tree788406eaae6f369df3dad27831c7bd7e76952ec4
parent3032e7063f5a215a4a2b15f79be8d54aace6b614
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>
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