aboutsummaryrefslogtreecommitdiff
path: root/python/mock/mock.SlackBuild
diff options
context:
space:
mode:
authorDave Woodfall <dave@slackbuilds.org>2021-05-21 21:32:16 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2021-06-02 01:02:25 +0700
commitd0183e7b6f2d2d09ea174bcee1bb24424b67f214 (patch)
tree16fb5a3b6d4f3075c363d83be5414e5fa651f3f5 /python/mock/mock.SlackBuild
parentfaa40a3410bd1f7690cf1b90594f21ced4f1efa0 (diff)
python/mock: Convert python to python2.
Signed-off-by: Dave Woodfall <dave@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'python/mock/mock.SlackBuild')
-rw-r--r--python/mock/mock.SlackBuild8
1 files changed, 2 insertions, 6 deletions
diff --git a/python/mock/mock.SlackBuild b/python/mock/mock.SlackBuild
index c95ecb03136c9..a89c2e5909c84 100644
--- a/python/mock/mock.SlackBuild
+++ b/python/mock/mock.SlackBuild
@@ -72,12 +72,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
-
-# Python 3 support.
-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
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