libraries/pexpect: Add python3 support.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Willy Sudiarto Raharjo 2017-04-09 22:38:48 +07:00
parent 5a965975af
commit 51023864d2

View file

@ -3,7 +3,7 @@
# Slackware build script for Pexpect # Slackware build script for Pexpect
# Copyright (c) 2007 Javier Rojas <jerojasro@gmail.com> # Copyright (c) 2007 Javier Rojas <jerojasro@gmail.com>
# Copyright 2014-2016 Willy Sudiarto Raharjo <willysr@slackbuilds.org> # Copyright 2014-2017 Willy Sudiarto Raharjo <willysr@slackbuilds.org>
# All rights reserved. # All rights reserved.
# #
# Redistribution and use of this script, with or without modification, is # Redistribution and use of this script, with or without modification, is
@ -72,6 +72,10 @@ find -L . \
python setup.py install --root=$PKG python setup.py install --root=$PKG
if $(python3 -c 'import sys' 2>/dev/null); then
python3 setup.py install --root=$PKG
fi
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a LICENSE README.rst $PKG/usr/doc/$PRGNAM-$VERSION cp -a LICENSE README.rst $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild