summaryrefslogtreecommitdiff
path: root/lang/python/files/python-package.mk
diff options
context:
space:
mode:
authorchamptar <champetier.etienne@gmail.com>2016-07-02 14:45:41 +0200
committerGitHub <noreply@github.com>2016-07-02 14:45:41 +0200
commitd775032d387f67aa10769c5c606e64f5cbf92467 (patch)
tree746f57a258d2c9cfe939501a50f21e68e967be0e /lang/python/files/python-package.mk
parent7d5e546887763bc930ff9af65759519faab7adfe (diff)
parentaa2baa2120c6b661bc5550cfa49364146efc4799 (diff)
Merge pull request #2901 from commodo/python-win-exe-files-remove
python: do not allow packaging of windows exe files
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 1f6771845..ff0c2dcaa 100644
--- a/lang/python/files/python-package.mk
+++ b/lang/python/files/python-package.mk
@@ -45,7 +45,7 @@ define PyPackage
$(call shexport,PyPackage/$(1)/filespec)
define Package/$(1)/install
- find $(PKG_INSTALL_DIR) -name "*\.pyc" -o -name "*\.pyo" | xargs rm -f
+ find $(PKG_INSTALL_DIR) -name "*\.pyc" -o -name "*\.pyo" -o -name "*\.exe" | xargs rm -f
@echo "$$$$$$$$$$(call shvar,PyPackage/$(1)/filespec)" | ( \
IFS='|'; \
while read fop fspec fperm; do \
@@ -103,7 +103,7 @@ define Build/Compile/PyMod
, \
./setup.py $(2) \
)
- find $(PKG_INSTALL_DIR) -name "*\.pyc" -o -name "*\.pyo" | xargs rm -f
+ find $(PKG_INSTALL_DIR) -name "*\.pyc" -o -name "*\.pyo" -o -name "*\.exe" | xargs rm -f
endef
define PyMod/Default