Merge pull request #2901 from commodo/python-win-exe-files-remove

python: do not allow packaging of windows exe files
This commit is contained in:
champtar 2016-07-02 14:45:41 +02:00 committed by GitHub
commit d775032d38
2 changed files with 3 additions and 3 deletions

View file

@ -12,7 +12,7 @@ include ./files/python-package.mk
PKG_NAME:=python PKG_NAME:=python
PKG_VERSION:=$(PYTHON_VERSION).$(PYTHON_VERSION_MICRO) PKG_VERSION:=$(PYTHON_VERSION).$(PYTHON_VERSION_MICRO)
PKG_RELEASE:=8 PKG_RELEASE:=9
PKG_SOURCE:=Python-$(PKG_VERSION).tar.xz PKG_SOURCE:=Python-$(PKG_VERSION).tar.xz
PKG_SOURCE_URL:=https://www.python.org/ftp/python/$(PKG_VERSION) PKG_SOURCE_URL:=https://www.python.org/ftp/python/$(PKG_VERSION)

View file

@ -45,7 +45,7 @@ define PyPackage
$(call shexport,PyPackage/$(1)/filespec) $(call shexport,PyPackage/$(1)/filespec)
define Package/$(1)/install 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)" | ( \ @echo "$$$$$$$$$$(call shvar,PyPackage/$(1)/filespec)" | ( \
IFS='|'; \ IFS='|'; \
while read fop fspec fperm; do \ while read fop fspec fperm; do \
@ -103,7 +103,7 @@ define Build/Compile/PyMod
, \ , \
./setup.py $(2) \ ./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 endef
define PyMod/Default define PyMod/Default