summaryrefslogtreecommitdiff
path: root/lang/python/python3/files/python3-package-setuptools.mk
diff options
context:
space:
mode:
authorJeffery To <jeffery.to@gmail.com>2020-05-22 03:57:55 +0800
committerJeffery To <jeffery.to@gmail.com>2020-05-22 03:57:55 +0800
commit3c36696a5652da83ad0de42d86edb271bf4db728 (patch)
tree65040600555b83f805675a077d3259549e775a88 /lang/python/python3/files/python3-package-setuptools.mk
parent643b91abb3defc28fafff35c363dd04a9658fac4 (diff)
python-packages: Add usr/bin symlinks without "3" suffix
Previously, binaries installed by Python packages will have a non-suffixed Python 2 version and a suffixed Python 3 version, e.g. pip and pip3. With the removal of Python 2, the non-suffixed names are no longer taken. This adds symlinks for the non-suffixed names linking to the suffixed scripts (or in the case of pip, easy_install, and python-config, to the fully-versioned scripts). Signed-off-by: Jeffery To <jeffery.to@gmail.com>
Diffstat (limited to 'lang/python/python3/files/python3-package-setuptools.mk')
-rw-r--r--lang/python/python3/files/python3-package-setuptools.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/lang/python/python3/files/python3-package-setuptools.mk b/lang/python/python3/files/python3-package-setuptools.mk
index 3a562c262..4e5a7572d 100644
--- a/lang/python/python3/files/python3-package-setuptools.mk
+++ b/lang/python/python3/files/python3-package-setuptools.mk
@@ -19,6 +19,7 @@ define Py3Package/python3-setuptools/install
$(INSTALL_DIR) $(1)/usr/bin $(1)/usr/lib/python$(PYTHON3_VERSION)/site-packages
$(CP) $(PKG_BUILD_DIR)/install-setuptools/usr/bin/easy_install-* $(1)/usr/bin
$(LN) easy_install-$(PYTHON3_VERSION) $(1)/usr/bin/easy_install-3
+ $(LN) easy_install-$(PYTHON3_VERSION) $(1)/usr/bin/easy_install
$(CP) \
$(PKG_BUILD_DIR)/install-setuptools/usr/lib/python$(PYTHON3_VERSION)/site-packages/setuptools \
$(PKG_BUILD_DIR)/install-setuptools/usr/lib/python$(PYTHON3_VERSION)/site-packages/setuptools-$(PYTHON3_SETUPTOOLS_VERSION).dist-info \