summaryrefslogtreecommitdiffstats
path: root/source/l/python-installer/python-installer.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xsource/l/python-installer/python-installer.SlackBuild7
1 files changed, 6 insertions, 1 deletions
diff --git a/source/l/python-installer/python-installer.SlackBuild b/source/l/python-installer/python-installer.SlackBuild
index 2567c86f0..d9e9bce66 100755
--- a/source/l/python-installer/python-installer.SlackBuild
+++ b/source/l/python-installer/python-installer.SlackBuild
@@ -1,6 +1,7 @@
#!/bin/bash
# Copyright 2022-2023 Heinz Wiesinger, Amsterdam, The Netherlands
+# Copyright 2024 Patrick J. Volkerding, Sebeka, Minnesota, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -24,7 +25,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PKGNAM=python-installer
VERSION=${VERSION:-$(echo installer-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)}
-BUILD=${BUILD:-2}
+BUILD=${BUILD:-3}
# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
@@ -83,6 +84,10 @@ PYTHONPATH=src python3 -m installer --destdir "$PKG" dist/*.whl || exit 1
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
+# Remove Windows garbage:
+find $PKG . -name "*.exe" -exec rm -f "{}" \;
+find $PKG . -name "*.dll" -exec rm -f "{}" \;
+
mkdir -p $PKG/usr/doc/$PKGNAM-$VERSION
cp -a \
*.md *.rst LICENSE PKG-INFO \