mirror of
https://github.com/openwrt/packages.git
synced 2025-12-20 09:31:20 +00:00
python3: Fix __pycache__ files included in python3-light
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)
This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
$(DESTDIR)$(LIBDEST); \
|
||||
$(INSTALL_DATA) $(srcdir)/LICENSE $(DESTDIR)$(LIBDEST)/LICENSE.txt
|
||||
if test -d $(DESTDIR)$(LIBDEST)/distutils/tests; then \
|
||||
@@ -1751,7 +1751,7 @@ sharedinstall: sharedmods
|
||||
@@ -1753,7 +1753,7 @@ sharedinstall: sharedmods
|
||||
--install-scripts=$(BINDIR) \
|
||||
--install-platlib=$(DESTSHARED) \
|
||||
--root=$(DESTDIR)/
|
||||
|
||||
Reference in New Issue
Block a user