python/ipython: Rename executable to ipython2.

Python 2 is not at end of life, so default should be Python 3.

Signed-off-by: Benjamin Trigona-Harany <slackbuilds@jaxartes.net>
This commit is contained in:
Benjamin Trigona-Harany 2020-01-04 11:53:43 -08:00 committed by Willy Sudiarto Raharjo
parent e67db9c492
commit a9af645262
No known key found for this signature in database
GPG Key ID: 887B8374D7333381
1 changed files with 6 additions and 3 deletions

View File

@ -25,7 +25,7 @@
PRGNAM=ipython
VERSION=${VERSION:-5.8.0}
BUILD=${BUILD:-1}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@ -57,12 +57,15 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
python setup.py install --root="$PKG"
python2 setup.py install --root="$PKG"
rm $PKG/usr/bin/ipython
rm $PKG/usr/bin/iptest*
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mv $PKG/usr/share/man $PKG/usr
mkdir -p $PKG/usr/man/man1
mv $PKG/usr/share/man/man1/$PRGNAM.1 $PKG/usr/man/man1/${PRGNAM}2.1
find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done