From cfac95a5a996c34762bbc3792b37e38764c59d5a Mon Sep 17 00:00:00 2001 From: Mirko Vogt Date: Wed, 7 Jan 2009 11:11:01 +0000 Subject: [PATCH] prevent packaging precompiled python files (*.pyc, *.pyo) SVN-Revision: 13921 --- lang/python/files/python-package.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lang/python/files/python-package.mk b/lang/python/files/python-package.mk index a744c73f4..64b65da94 100644 --- a/lang/python/files/python-package.mk +++ b/lang/python/files/python-package.mk @@ -56,6 +56,7 @@ define Build/Compile/PyMod CPPFLAGS="$(TARGET_CPPFLAGS)" \ LDFLAGS="$(TARGET_LDFLAGS)" \ $(3) \ - $(PYTHON) ./setup.py $(2) \ + $(PYTHON) ./setup.py $(2); \ + find $(PKG_INSTALL_DIR) -name "*\.pyc" -o -name "*\.pyo" | xargs rm -f \ ); endef -- 2.30.2