aboutsummaryrefslogtreecommitdiff
path: root/python/python3-tempora/python3-tempora.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'python/python3-tempora/python3-tempora.SlackBuild')
-rw-r--r--python/python3-tempora/python3-tempora.SlackBuild12
1 files changed, 10 insertions, 2 deletions
diff --git a/python/python3-tempora/python3-tempora.SlackBuild b/python/python3-tempora/python3-tempora.SlackBuild
index 581eb46951..01b90a776a 100644
--- a/python/python3-tempora/python3-tempora.SlackBuild
+++ b/python/python3-tempora/python3-tempora.SlackBuild
@@ -22,11 +22,14 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# 20220908 46and2: Updated version.
+# -build process changed
+
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=python3-tempora
SRCNAM=$(echo $PRGNAM | sed "s/python3-//")
-VERSION=${VERSION:-4.1.2}
+VERSION=${VERSION:-5.0.2}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -80,7 +83,12 @@ 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 {} \;
-python3 setup.py install --root=$PKG
+python3 -m build --no-isolation
+python3 -m installer -d "$PKG" dist/*.whl
+
+# installing tests to a subdir of your project might not conflict the toplevel, but
+# don't do it anyway...
+rm -r "$PKG"/usr/lib${LIBDIRSUFFIX}/python*/site-packages/${SRCNAM}/tests/
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