python: have bin/python${_MAJOR_VERSION}m back

and convert bin/python${_MAJOR_VERSION} from hardlink to symlink
This commit is contained in:
Tom Yan 2018-05-18 01:56:26 +08:00 committed by Fredrik Fornwall
parent 18d2585c33
commit 07ddeca733

View File

@ -28,7 +28,7 @@ TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" --enable-loadable-sqlite-extensions"
# Fix https://github.com/termux/termux-packages/issues/2236: # Fix https://github.com/termux/termux-packages/issues/2236:
TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" ac_cv_little_endian_double=yes" TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" ac_cv_little_endian_double=yes"
TERMUX_PKG_RM_AFTER_INSTALL=" TERMUX_PKG_RM_AFTER_INSTALL="
bin/python${_MAJOR_VERSION}m bin/idle* bin/idle*
lib/python${_MAJOR_VERSION}/idlelib lib/python${_MAJOR_VERSION}/idlelib
lib/python${_MAJOR_VERSION}/test lib/python${_MAJOR_VERSION}/test
lib/python${_MAJOR_VERSION}/tkinter lib/python${_MAJOR_VERSION}/tkinter
@ -50,8 +50,11 @@ termux_step_pre_configure() {
} }
termux_step_post_make_install () { termux_step_post_make_install () {
(cd $TERMUX_PREFIX/bin && rm -f python && ln -s python3 python) (cd $TERMUX_PREFIX/bin
(cd $TERMUX_PREFIX/share/man/man1 && rm -f python.1 && ln -s python3.1 python.1) 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. # 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. # It is required by ensurepip so bundled with the main python package.