From 3c36696a5652da83ad0de42d86edb271bf4db728 Mon Sep 17 00:00:00 2001 From: Jeffery To Date: Fri, 22 May 2020 03:57:55 +0800 Subject: 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 --- lang/python/python-twisted/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lang/python/python-twisted/Makefile') diff --git a/lang/python/python-twisted/Makefile b/lang/python/python-twisted/Makefile index 1a3946777..935f34b36 100644 --- a/lang/python/python-twisted/Makefile +++ b/lang/python/python-twisted/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=python-twisted PKG_VERSION:=20.3.0 -PKG_RELEASE:=2 +PKG_RELEASE:=3 PYPI_NAME:=Twisted PYPI_SOURCE_EXT:=tar.bz2 @@ -59,6 +59,7 @@ define Py3Package/python3-twisted/install $(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/ for bin in $(1)/usr/bin/*; do \ mv $$$$bin $$$${bin}3 ; \ + $(LN) $$$${bin##*/}3 $$$$bin ; \ done endef -- cgit