summaryrefslogtreecommitdiff
path: root/lang/python/python3/files/python3-package-pip.mk
diff options
context:
space:
mode:
authorAlexandru Ardelean <ardeleanalex@gmail.com>2017-07-03 09:43:42 +0300
committerAlexandru Ardelean <ardeleanalex@gmail.com>2017-07-03 16:11:52 +0300
commita2b76b54030c0771b28c501dfd699898b8a85fd6 (patch)
tree41da96e5839fc800b645c3089d0345a182a9d836 /lang/python/python3/files/python3-package-pip.mk
parent1c54e2b0fbe2e9a7dfb050b45ff79a0f72b8582f (diff)
python,python3: simplify `sed` expression for setuptools & pip
A suggestion from comment (from Philip Prindeville): https://github.com/openwrt/packages/issues/4529#issuecomment-312518121 Avoids some escaping of slashes. Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
Diffstat (limited to 'lang/python/python3/files/python3-package-pip.mk')
-rw-r--r--lang/python/python3/files/python3-package-pip.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/lang/python/python3/files/python3-package-pip.mk b/lang/python/python3/files/python3-package-pip.mk
index 43e05f1c7..ff9b5ac74 100644
--- a/lang/python/python3/files/python3-package-pip.mk
+++ b/lang/python/python3/files/python3-package-pip.mk
@@ -15,7 +15,7 @@ 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/*
+ 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 \