prevent packaging precompiled python files (*.pyc, *.pyo)
git-svn-id: svn://svn.openwrt.org/openwrt/packages@13921 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
@ -56,6 +56,7 @@ define Build/Compile/PyMod
|
|||||||
CPPFLAGS="$(TARGET_CPPFLAGS)" \
|
CPPFLAGS="$(TARGET_CPPFLAGS)" \
|
||||||
LDFLAGS="$(TARGET_LDFLAGS)" \
|
LDFLAGS="$(TARGET_LDFLAGS)" \
|
||||||
$(3) \
|
$(3) \
|
||||||
$(PYTHON) ./setup.py $(2) \
|
$(PYTHON) ./setup.py $(2); \
|
||||||
|
find $(PKG_INSTALL_DIR) -name "*\.pyc" -o -name "*\.pyo" | xargs rm -f \
|
||||||
);
|
);
|
||||||
endef
|
endef
|
||||||
|
Reference in New Issue
Block a user