summaryrefslogtreecommitdiff
path: root/python/pyinotify/pyinotify.SlackBuild
diff options
context:
space:
mode:
authorWilly Sudiarto Raharjo <willysr@slackbuilds.org>2022-04-09 10:09:41 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2022-04-09 15:45:52 +0700
commitd98589bc443c838b70f0243a4c2bf94f8d79507b (patch)
treeecc8cc063a1f2ea0b01146b7be1362fcc1506fad /python/pyinotify/pyinotify.SlackBuild
parent3e9e4cdcbacc4458d005577462f3d056ed71660b (diff)
downloadslackbuilds-d98589bc443c838b70f0243a4c2bf94f8d79507b.tar.gz
python/pyinotify: Build Python3 by default.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'python/pyinotify/pyinotify.SlackBuild')
-rw-r--r--python/pyinotify/pyinotify.SlackBuild8
1 files changed, 1 insertions, 7 deletions
diff --git a/python/pyinotify/pyinotify.SlackBuild b/python/pyinotify/pyinotify.SlackBuild
index 5c5c293748..8aaa4145af 100644
--- a/python/pyinotify/pyinotify.SlackBuild
+++ b/python/pyinotify/pyinotify.SlackBuild
@@ -38,9 +38,6 @@ if [ -z "$ARCH" ]; then
esac
fi
-# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
-# the name of the created package would be, and then exit. This information
-# could be useful to other scripts.
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
@@ -69,10 +66,7 @@ find -L . \
sed -i '/^compile_ext_mod/s|=.*|= True|' setup.py
python setup.py install --root=$PKG
-
-if [ "${PYTHON3:-no}" == "yes" ]; then
- python3 setup.py install --root=$PKG
-fi
+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