python3: do not allow packaging of windows exe files
Thanks to @ryzhovau for reporting. Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
This commit is contained in:
parent
a9c7735c75
commit
2dee0cf070
2 changed files with 3 additions and 3 deletions
|
@ -14,7 +14,7 @@ PYTHON_VERSION:=$(PYTHON3_VERSION)
|
||||||
PYTHON_VERSION_MICRO:=$(PYTHON3_VERSION_MICRO)
|
PYTHON_VERSION_MICRO:=$(PYTHON3_VERSION_MICRO)
|
||||||
|
|
||||||
PKG_NAME:=python3
|
PKG_NAME:=python3
|
||||||
PKG_RELEASE:=3
|
PKG_RELEASE:=4
|
||||||
PKG_VERSION:=$(PYTHON_VERSION).$(PYTHON_VERSION_MICRO)
|
PKG_VERSION:=$(PYTHON_VERSION).$(PYTHON_VERSION_MICRO)
|
||||||
|
|
||||||
PKG_SOURCE:=Python-$(PKG_VERSION).tar.xz
|
PKG_SOURCE:=Python-$(PKG_VERSION).tar.xz
|
||||||
|
|
|
@ -62,7 +62,7 @@ define Py3Package
|
||||||
$(call shexport,Py3Package/$(1)/filespec)
|
$(call shexport,Py3Package/$(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,Py3Package/$(1)/filespec)" | ( \
|
@echo "$$$$$$$$$$(call shvar,Py3Package/$(1)/filespec)" | ( \
|
||||||
IFS='|'; \
|
IFS='|'; \
|
||||||
while read fop fspec fperm; do \
|
while read fop fspec fperm; do \
|
||||||
|
@ -117,6 +117,6 @@ define Build/Compile/Py3Mod
|
||||||
, \
|
, \
|
||||||
./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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue