python(2): fix bin/ and share/man/

Justification for the changes:

$ dpkg -S smtpd.py
python: /data/data/com.termux/files/usr/lib/python3.6/smtpd.py
python2: /data/data/com.termux/files/usr/lib/python2.7/smtpd.py
python2: /data/data/com.termux/files/usr/bin/smtpd.py

$ ls -l $PREFIX/bin/python-config
lrwxrwxrwx    1 u0_a312  u0_a312         14 May 18 01:09 /data/data/com.termux/files/usr/bin/python-config -> python2-config

$ ls -l $PREFIX/share/man/man1/python2.1
lrwxrwxrwx    1 u0_a312  u0_a312          9 May 18 01:09 /data/data/com.termux/files/usr/share/man/man1/python2.1 -> python2.1

$ dpkg -S bin/2to3
python: /data/data/com.termux/files/usr/bin/2to3
python: /data/data/com.termux/files/usr/bin/2to3-3.6

$ dpkg -S bin/pydoc
python2: /data/data/com.termux/files/usr/bin/pydoc
python: /data/data/com.termux/files/usr/bin/pydoc3.6
python: /data/data/com.termux/files/usr/bin/pydoc3
This commit is contained in:
Tom Yan
2018-05-18 04:40:42 +08:00
committed by Fredrik Fornwall
parent 2299660e77
commit 5ccf28cf8c
2 changed files with 13 additions and 6 deletions

View File

@@ -52,7 +52,9 @@ termux_step_pre_configure() {
termux_step_post_make_install () {
(cd $TERMUX_PREFIX/bin
ln -sf python${_MAJOR_VERSION}m python${_MAJOR_VERSION}
ln -sf python3 python)
ln -sf python3 python
ln -sf python3-config python-config
ln -sf pydoc3 pydoc)
(cd $TERMUX_PREFIX/share/man/man1
ln -sf python3.1 python.1)