summaryrefslogtreecommitdiff
path: root/python/python3-gmpy2
diff options
context:
space:
mode:
authorMatteo Bernardini <ponce@slackbuilds.org>2021-10-18 09:03:22 +0200
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2021-10-22 13:03:40 +0700
commit42d0ebfae01eec591933d051717cf1b1a8d8d777 (patch)
tree50b20166872bf4edc8efa12c3ad2e9aabed53d97 /python/python3-gmpy2
parent9eb284a07388bb7b1ff6ebcb34f4a629dc03a804 (diff)
downloadslackbuilds-42d0ebfae01eec591933d051717cf1b1a8d8d777.tar.gz
python/python3-gmpy2: Updated for version 2.1.0rc1.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'python/python3-gmpy2')
-rw-r--r--python/python3-gmpy2/python3-gmpy2.SlackBuild7
-rw-r--r--python/python3-gmpy2/python3-gmpy2.info6
2 files changed, 8 insertions, 5 deletions
diff --git a/python/python3-gmpy2/python3-gmpy2.SlackBuild b/python/python3-gmpy2/python3-gmpy2.SlackBuild
index 85b565879b..d4dcd6862c 100644
--- a/python/python3-gmpy2/python3-gmpy2.SlackBuild
+++ b/python/python3-gmpy2/python3-gmpy2.SlackBuild
@@ -26,7 +26,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=python3-gmpy2
SRCNAM=gmpy2
-VERSION=${VERSION:-2.0.8}
+VERSION=${VERSION:-2.1.0rc1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -57,7 +57,7 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $SRCNAM-$VERSION
-unzip $CWD/$SRCNAM-$VERSION.zip
+tar xf $CWD/$SRCNAM-$VERSION.tar.?z
cd $SRCNAM-$VERSION
chown -R root:root .
find -L . \
@@ -66,6 +66,9 @@ 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 {} \;
+# Symbols from the math library are also used
+sed -i "s/'mpfr','gmp'/&,'m'/" setup.py
+
python3 setup.py install --root=$PKG
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
diff --git a/python/python3-gmpy2/python3-gmpy2.info b/python/python3-gmpy2/python3-gmpy2.info
index 8ae7e132c9..c5c64d82c1 100644
--- a/python/python3-gmpy2/python3-gmpy2.info
+++ b/python/python3-gmpy2/python3-gmpy2.info
@@ -1,8 +1,8 @@
PRGNAM="python3-gmpy2"
-VERSION="2.0.8"
+VERSION="2.1.0rc1"
HOMEPAGE="https://github.com/aleaxit/gmpy"
-DOWNLOAD="https://pypi.python.org/packages/source/g/gmpy2/gmpy2-2.0.8.zip"
-MD5SUM="56d40bddcf8f22be0a36d60f764f3241"
+DOWNLOAD="https://files.pythonhosted.org/packages/ea/65/cc97abe9dd0f22d3878a13138ea47d9fc7ff77b0cc16447a35ee777494e1/gmpy2-2.1.0rc1.tar.gz"
+MD5SUM="a1555e0d7ca28b3a49c9a81aa06e2bb6"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""