python3-pip: Symlink pip3 to pip3.8 11760/head
authorJeffery To <jeffery.to@gmail.com>
Fri, 3 Apr 2020 22:21:39 +0000 (06:21 +0800)
committerJeffery To <jeffery.to@gmail.com>
Fri, 3 Apr 2020 22:21:39 +0000 (06:21 +0800)
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 <jeffery.to@gmail.com>
lang/python/python3-version.mk
lang/python/python3/files/python3-package-pip.mk

index 120c083730fe152380b88d711ac80f04563fa1e3..db59f27394ab518caf8c48ac7f81c91615b82e4f 100644 (file)
@@ -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
index a27d40a4e504dae7535afaa5bc504ab0106675e4..0182c99d824eb0c05df2c5ab59b59fa410eafcf4 100644 (file)
@@ -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 \