summaryrefslogtreecommitdiff
path: root/lang/python/files/python-package.mk
diff options
context:
space:
mode:
authorAlexandru Ardelean <ardeleanalex@gmail.com>2017-03-02 15:24:14 +0200
committerAlexandru Ardelean <ardeleanalex@gmail.com>2017-03-09 09:26:36 +0200
commit05f8d6edf06c93dadab34f14a5fad48449dd7eda (patch)
tree468f2e4e388bf66809176d2f892b1de263310e3b /lang/python/files/python-package.mk
parent92073b047bb862627db5b264c3ee7cc79ba49649 (diff)
python,python3: drop remove .pyc & .pyo files
We'll control in the install phase what we ship [byte-codes or source files] Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
Diffstat (limited to 'lang/python/files/python-package.mk')
-rw-r--r--lang/python/files/python-package.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/lang/python/files/python-package.mk b/lang/python/files/python-package.mk
index dfc07a612..4f05dfebb 100644
--- a/lang/python/files/python-package.mk
+++ b/lang/python/files/python-package.mk
@@ -54,7 +54,7 @@ define PyPackage
define Package/$(1)/install
$(call PyPackage/$(1)/install,$$(1))
- find $(PKG_INSTALL_DIR) -name "*\.pyc" -o -name "*\.pyo" -o -name "*\.exe" | xargs rm -f
+ find $(PKG_INSTALL_DIR) -name "*\.exe" | xargs rm -f
if [ -e files/python-package-install.sh ] ; then \
$(SHELL) files/python-package-install.sh \
"$(PKG_INSTALL_DIR)" "$$(1)" \
@@ -103,7 +103,7 @@ define Build/Compile/PyMod
cd $(PKG_BUILD_DIR)/$(strip $(1)), \
./setup.py $(2), \
$(3))
- find $(PKG_INSTALL_DIR) -name "*\.pyc" -o -name "*\.pyo" -o -name "*\.exe" | xargs rm -f
+ find $(PKG_INSTALL_DIR) -name "*\.exe" | xargs rm -f
endef
define PyBuild/Compile/Default