summaryrefslogtreecommitdiff
path: root/lang/python/python3/files/python3-package-pip.mk
diff options
context:
space:
mode:
authorHannu Nyman <hannu.nyman@iki.fi>2019-02-12 19:32:41 +0200
committerGitHub <noreply@github.com>2019-02-12 19:32:41 +0200
commit4eb0c6b2ab692e4d2787cf346280d032a4aa3ceb (patch)
tree3e3184bfe30256412392aa2ebe07f735ba91e305 /lang/python/python3/files/python3-package-pip.mk
parent66e68603f35fccd717649b7c337f98d1f54f2e55 (diff)
parent382f1ec6e4842d4cd9662c6e1c392f85e947a407 (diff)
Merge pull request #8196 from commodo/python-batch-updates
python,python3: batch updates
Diffstat (limited to 'lang/python/python3/files/python3-package-pip.mk')
-rw-r--r--lang/python/python3/files/python3-package-pip.mk7
1 files changed, 4 insertions, 3 deletions
diff --git a/lang/python/python3/files/python3-package-pip.mk b/lang/python/python3/files/python3-package-pip.mk
index 1aaeaf2ee..fd1cd59d5 100644
--- a/lang/python/python3/files/python3-package-pip.mk
+++ b/lang/python/python3/files/python3-package-pip.mk
@@ -14,14 +14,15 @@ endef
define Package/python3-pip/install
$(INSTALL_DIR) $(1)/usr/bin $(1)/usr/lib/python$(PYTHON3_VERSION)/site-packages
- # Adjust shebang to proper python location on target
- sed "1s@.*@#\!/usr/bin/python$(PYTHON3_VERSION)@" -i $(PKG_BUILD_DIR)/install-pip/bin/*
$(CP) $(PKG_BUILD_DIR)/install-pip/bin/pip3* $(1)/usr/bin
$(CP) \
$(PKG_BUILD_DIR)/install-pip/lib/python$(PYTHON3_VERSION)/site-packages/pip \
$(PKG_BUILD_DIR)/install-pip/lib/python$(PYTHON3_VERSION)/site-packages/pip-$(PYTHON3_PIP_VERSION).dist-info \
$(1)/usr/lib/python$(PYTHON3_VERSION)/site-packages/
- find $(1)/usr/lib/python$(PYTHON3_VERSION)/site-packages/ -name __pycache__ | xargs rm -rf
+ for _ in \$(seq 1 10) ; do \
+ find $(1)/usr/lib/python$(PYTHON3_VERSION)/site-packages/ -name __pycache__ -exec rm -rf {} \; || continue ; \
+ break ; \
+ done
endef
$(eval $(call Py3BasePackage,python3-pip, \