From d28e074fb56cd9aaa3d4f40d9b7bd87622a13f44 Mon Sep 17 00:00:00 2001 From: Dave Woodfall Date: Fri, 21 May 2021 21:32:09 +0100 Subject: python/Whoosh: Convert python to python2. Signed-off-by: Dave Woodfall Signed-off-by: Willy Sudiarto Raharjo --- python/Whoosh/README | 9 ++++++--- python/Whoosh/Whoosh.SlackBuild | 6 ++---- 2 files changed, 8 insertions(+), 7 deletions(-) (limited to 'python/Whoosh') diff --git a/python/Whoosh/README b/python/Whoosh/README index 35b084975f3ae..71ca2ab096a9a 100644 --- a/python/Whoosh/README +++ b/python/Whoosh/README @@ -1,3 +1,6 @@ -Whoosh is a fast, featureful full-text indexing and searching library implemented in pure Python. -Programmers can use it to easily add search functionality to their applications and websites. -Every part of how Whoosh works can be extended or replaced to meet your needs exactly. +Whoosh is a fast, featureful full-text indexing and searching library +implemented in pure Python. +Programmers can use it to easily add search functionality to their +applications and websites. +Every part of how Whoosh works can be extended or replaced to meet your +needs exactly. diff --git a/python/Whoosh/Whoosh.SlackBuild b/python/Whoosh/Whoosh.SlackBuild index 02b56cf097fa0..1653897fad0bd 100644 --- a/python/Whoosh/Whoosh.SlackBuild +++ b/python/Whoosh/Whoosh.SlackBuild @@ -53,10 +53,8 @@ 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 -if $(python3 -c 'import sys' 2>/dev/null); then - python3 setup.py install --root=$PKG -fi +python2 setup.py install --root=$PKG +python3 setup.py install --root=$PKG mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a README* MANIFEST.in $PKG/usr/doc/$PRGNAM-$VERSION -- cgit v1.2.3