From 51023864d24a68b2bf787cae96fdeb412e0b572a Mon Sep 17 00:00:00 2001 From: Willy Sudiarto Raharjo Date: Sun, 9 Apr 2017 22:38:48 +0700 Subject: [PATCH] libraries/pexpect: Add python3 support. Signed-off-by: Willy Sudiarto Raharjo --- libraries/pexpect/pexpect.SlackBuild | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libraries/pexpect/pexpect.SlackBuild b/libraries/pexpect/pexpect.SlackBuild index 705a14ba55..75b8c54a07 100644 --- a/libraries/pexpect/pexpect.SlackBuild +++ b/libraries/pexpect/pexpect.SlackBuild @@ -3,7 +3,7 @@ # Slackware build script for Pexpect # Copyright (c) 2007 Javier Rojas -# Copyright 2014-2016 Willy Sudiarto Raharjo +# Copyright 2014-2017 Willy Sudiarto Raharjo # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -72,6 +72,10 @@ find -L . \ 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 cp -a LICENSE README.rst $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild