python,python3: drop remove .pyc & .pyo files
authorAlexandru Ardelean <redacted>
Thu, 2 Mar 2017 13:24:14 +0000 (15:24 +0200)
committerAlexandru Ardelean <redacted>
Thu, 9 Mar 2017 07:26:36 +0000 (09:26 +0200)
We'll control in the install phase what we ship [byte-codes or source files]

Signed-off-by: Alexandru Ardelean <redacted>
lang/python/files/python-package.mk
lang/python3/files/python3-package.mk

index dfc07a612dc815f5997750f1505ae0a006d47174..4f05dfebbc71a7878fc6c2cef5df745c0ce303f2 100644 (file)
@@ -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
index f1f3ff54624cfdbf21b617d58098e0e711359785..1ed8b2c18afa7a853b7df1740d384afc89077b7e 100644 (file)
@@ -54,7 +54,7 @@ define Py3Package
 
   define Package/$(1)/install
        $(call Py3Package/$(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/python3-package-install.sh ] ; then \
                $(SHELL) files/python3-package-install.sh \
                        "$(PKG_INSTALL_DIR)" "$$(1)" \
@@ -103,7 +103,7 @@ define Build/Compile/Py3Mod
                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 Py3Build/Compile/Default
git clone https://git.99rst.org/PROJECT