aboutsummaryrefslogtreecommitdiff
path: root/python/memory-profiler
diff options
context:
space:
mode:
Diffstat (limited to 'python/memory-profiler')
-rw-r--r--python/memory-profiler/memory-profiler.SlackBuild23
-rw-r--r--python/memory-profiler/memory-profiler.info6
2 files changed, 13 insertions, 16 deletions
diff --git a/python/memory-profiler/memory-profiler.SlackBuild b/python/memory-profiler/memory-profiler.SlackBuild
index ac22aeea45..296eea1790 100644
--- a/python/memory-profiler/memory-profiler.SlackBuild
+++ b/python/memory-profiler/memory-profiler.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for memory-profiler
-# Copyright 2022 Vijay Marcel
+# Copyright 2022-2025 Vijay Marcel
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -25,7 +25,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=memory-profiler
-VERSION=${VERSION:-0.60.0}
+VERSION=${VERSION:-0.61.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -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
@@ -51,13 +48,13 @@ PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i586" ]; then
- SLKCFLAGS="-O2 -march=i586 -mtune=i686"
+ SLKCFLAGS="-march=i586 -mtune=i686 -pipe -O2 -fPIC"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
- SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ SLKCFLAGS="-march=i686 -mtune=i686 -pipe -O2 -fPIC"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
- SLKCFLAGS="-O2 -fPIC"
+ SLKCFLAGS="-march=x86-64 -mtune=generic -pipe -O2 -fPIC"
LIBDIRSUFFIX="64"
else
SLKCFLAGS="-O2"
@@ -76,15 +73,15 @@ cd memory_profiler-$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
- -o -perm 511 \) -exec chmod 755 {} \; -o \
+ -o -perm 511 \) -exec chmod 755 {} \+ -o \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
- -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \+
-python3 setup.py build
-python3 setup.py install --root=$PKG --optimize=1
+CFLAGS="$SLKCFLAGS" CXXFLAGS="$SLKCFLAGS" python3 setup.py build
+CFLAGS="$SLKCFLAGS" CXXFLAGS="$SLKCFLAGS" python3 setup.py install --root=$PKG --optimize=1
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
+ | cut -f 1 -d : | xargs strip --strip-unneeded --remove-section=.comment --remove-section=.note 2> /dev/null || true
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a PKG-INFO README.rst $PKG/usr/doc/$PRGNAM-$VERSION
diff --git a/python/memory-profiler/memory-profiler.info b/python/memory-profiler/memory-profiler.info
index 3ee384e0da..73fbd62d96 100644
--- a/python/memory-profiler/memory-profiler.info
+++ b/python/memory-profiler/memory-profiler.info
@@ -1,8 +1,8 @@
PRGNAM="memory-profiler"
-VERSION="0.60.0"
+VERSION="0.61.0"
HOMEPAGE="https://github.com/pythonprofilers/memory_profiler"
-DOWNLOAD="https://pypi.io/packages/source/m/memory_profiler/memory_profiler-0.60.0.tar.gz"
-MD5SUM="c4d29b47885c32581f5bcefb44d2ca8e"
+DOWNLOAD="https://files.pythonhosted.org/packages/b2/88/e1907e1ca3488f2d9507ca8b0ae1add7b1cd5d3ca2bc8e5b329382ea2c7b/memory_profiler-0.61.0.tar.gz"
+MD5SUM="5fe93d5035288095c4f86ef69ee19f37"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="python3-psutil"