From 07ddeca73332e47095df004ec94e85305c47ec88 Mon Sep 17 00:00:00 2001 From: Tom Yan Date: Fri, 18 May 2018 01:56:26 +0800 Subject: [PATCH] python: have bin/python${_MAJOR_VERSION}m back and convert bin/python${_MAJOR_VERSION} from hardlink to symlink --- packages/python/build.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/packages/python/build.sh b/packages/python/build.sh index 0552a7bd3..31d9205b1 100644 --- a/packages/python/build.sh +++ b/packages/python/build.sh @@ -28,7 +28,7 @@ TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" --enable-loadable-sqlite-extensions" # Fix https://github.com/termux/termux-packages/issues/2236: TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" ac_cv_little_endian_double=yes" TERMUX_PKG_RM_AFTER_INSTALL=" -bin/python${_MAJOR_VERSION}m bin/idle* +bin/idle* lib/python${_MAJOR_VERSION}/idlelib lib/python${_MAJOR_VERSION}/test lib/python${_MAJOR_VERSION}/tkinter @@ -50,8 +50,11 @@ termux_step_pre_configure() { } termux_step_post_make_install () { - (cd $TERMUX_PREFIX/bin && rm -f python && ln -s python3 python) - (cd $TERMUX_PREFIX/share/man/man1 && rm -f python.1 && ln -s python3.1 python.1) + (cd $TERMUX_PREFIX/bin + ln -sf python${_MAJOR_VERSION}m python${_MAJOR_VERSION} + ln -sf python3 python) + (cd $TERMUX_PREFIX/share/man/man1 + ln -sf python3.1 python.1) # Save away pyconfig.h so that the python-dev subpackage does not take it. # It is required by ensurepip so bundled with the main python package.