mirror of
https://github.com/openwrt/packages.git
synced 2025-12-20 09:31:20 +00:00
003-do-not-run-distutils-tests.patch was removed in4e05541782. 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:4e05541782("python3: bump to version 3.10.0") Signed-off-by: Jeffery To <jeffery.to@gmail.com> (cherry picked from commit8a4da01790)
12 lines
421 B
Diff
12 lines
421 B
Diff
--- a/Makefile.pre.in
|
|
+++ b/Makefile.pre.in
|
|
@@ -1645,7 +1645,7 @@ python-config: $(srcdir)/Misc/python-con
|
|
@ # On Darwin, always use the python version of the script, the shell
|
|
@ # version doesn't use the compiler customizations that are provided
|
|
@ # in python (_osx_support.py).
|
|
- @if test `uname -s` = Darwin; then \
|
|
+ @if test "$(USE_PYTHON_CONFIG_PY)" = 1; then \
|
|
cp python-config.py python-config; \
|
|
fi
|
|
|