From 932bfe4cf3bc5087f4fdf00b2b2f140ebcf9b7e1 Mon Sep 17 00:00:00 2001 From: Jeffery To Date: Sat, 4 Apr 2020 06:21:39 +0800 Subject: [PATCH] python3-pip: Symlink pip3 to pip3.8 Currently, python3-pip installs the same script as pip3 and pip3.8 to usr/bin. This changes pip3 to be a symlink to pip3.8. Signed-off-by: Jeffery To --- lang/python/python3-version.mk | 2 +- lang/python/python3/files/python3-package-pip.mk | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lang/python/python3-version.mk b/lang/python/python3-version.mk index 120c083730..db59f27394 100644 --- a/lang/python/python3-version.mk +++ b/lang/python/python3-version.mk @@ -13,7 +13,7 @@ PYTHON3_VERSION_MICRO:=2 PYTHON3_VERSION:=$(PYTHON3_VERSION_MAJOR).$(PYTHON3_VERSION_MINOR) PYTHON3_SETUPTOOLS_PKG_RELEASE:=1 -PYTHON3_PIP_PKG_RELEASE:=1 +PYTHON3_PIP_PKG_RELEASE:=2 PYTHON3_SETUPTOOLS_VERSION:=41.2.0 PYTHON3_PIP_VERSION:=19.2.3 diff --git a/lang/python/python3/files/python3-package-pip.mk b/lang/python/python3/files/python3-package-pip.mk index a27d40a4e5..0182c99d82 100644 --- a/lang/python/python3/files/python3-package-pip.mk +++ b/lang/python/python3/files/python3-package-pip.mk @@ -17,7 +17,8 @@ endef define Py3Package/python3-pip/install $(INSTALL_DIR) $(1)/usr/bin $(1)/usr/lib/python$(PYTHON3_VERSION)/site-packages - $(CP) $(PKG_BUILD_DIR)/install-pip/usr/bin/pip3* $(1)/usr/bin + $(CP) $(PKG_BUILD_DIR)/install-pip/usr/bin/pip$(PYTHON3_VERSION) $(1)/usr/bin + $(LN) pip$(PYTHON3_VERSION) $(1)/usr/bin/pip3 $(CP) \ $(PKG_BUILD_DIR)/install-pip/usr/lib/python$(PYTHON3_VERSION)/site-packages/pip \ $(PKG_BUILD_DIR)/install-pip/usr/lib/python$(PYTHON3_VERSION)/site-packages/pip-$(PYTHON3_PIP_VERSION).dist-info \ -- 2.30.2