diff options
| author | Hannu Nyman <hannu.nyman@iki.fi> | 2017-10-04 22:22:38 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-10-04 22:22:38 +0300 |
| commit | 52157ed602df32659469f8d1982c09402f90e5c5 (patch) | |
| tree | 59fcee838577e59c6eb34ab7f9139ab7e4e706a9 /lang/python/python3/files/python3-package.mk | |
| parent | 32dbb7e865908aadfaf70e591f11fed56e86e3cb (diff) | |
| parent | 074d2863be48c1a9093fffcda91f7a328bc7d0cb (diff) | |
Merge pull request #4897 from commodo/python-egg-info-disable
python,python3: add option to keep egg-info dirs for python packages
Diffstat (limited to 'lang/python/python3/files/python3-package.mk')
| -rw-r--r-- | lang/python/python3/files/python3-package.mk | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lang/python/python3/files/python3-package.mk b/lang/python/python3/files/python3-package.mk index 93b14fac2..1d42b6dc3 100644 --- a/lang/python/python3/files/python3-package.mk +++ b/lang/python/python3/files/python3-package.mk @@ -32,6 +32,8 @@ ifdef CONFIG_USE_MIPS16 TARGET_CFLAGS += -mno-mips16 -mno-interlink-mips16 endif +PYTHON3_KEEP_EGGINFO ?= 0 + define Py3Package define Package/$(1)-src @@ -68,11 +70,13 @@ define Py3Package $(call Py3Package/$(1)/install,$$(1)) find $(PKG_INSTALL_DIR) -name "*\.exe" | xargs rm -f if [ -e files/python3-package-install.sh ] ; then \ + PYTHON3_KEEP_EGGINFO="$(PYTHON3_KEEP_EGGINFO)" \ $(SHELL) files/python3-package-install.sh \ "$(PKG_INSTALL_DIR)" "$$(1)" \ "$(HOST_PYTHON3_BIN)" "$$(2)" \ "$$$$$$$$$$(call shvar,Py3Package/$(1)/filespec)" ; \ elif [ -e $(STAGING_DIR)/mk/python3-package-install.sh ] ; then \ + PYTHON3_KEEP_EGGINFO="$(PYTHON3_KEEP_EGGINFO)" \ $(SHELL) $(STAGING_DIR)/mk/python3-package-install.sh \ "$(PKG_INSTALL_DIR)" "$$(1)" \ "$(HOST_PYTHON3_BIN)" "$$(2)" \ |
