Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python/pygsl: Updated for version 2.5.1. #9414

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 15 additions & 3 deletions python/pygsl/pygsl.SlackBuild
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Slackware build script for PyGSL
# Based on the Slackware 15.0 SlackBuild
#
# Copyright 2017-2023, Fellype do Nascimento, Guaratinguetá - Brazil
# Copyright 2017-2025, Fellype do Nascimento, Guaratinguetá - Brazil
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
Expand All @@ -26,7 +26,7 @@
cd $(dirname $0) ; CWD=$(pwd)

PRGNAM=pygsl
VERSION=${VERSION:-2.3.3}
VERSION=${VERSION:-2.5.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
Expand Down Expand Up @@ -80,13 +80,25 @@ 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 gsl_wrappers
python3 setup.py config
python3 setup.py build
python3 setup.py install --root=$PKG --prefix=/usr
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

# I am not sure if the build produces these "UNKNOWN" folders in all systems
PYVER=$(python3 -c 'import sys; print("%d.%d" % sys.version_info[:2])')
if [ -d $PKG/usr/include/python$PYVER/UNKNOWN ]; then
mkdir -p $PKG/usr/include/python$PYVER/$PRGNAM
mkdir -p $PKG/usr/lib$LIBDIRSUFFIX/python$PYVER/site-packages/$PRGNAM-$VERSION-py$PYVER.egg-info
mv $PKG/usr/include/python$PYVER/UNKNOWN/* $PKG/usr/include/python$PYVER/$PRGNAM
mv $PKG/usr/lib$LIBDIRSUFFIX/python$PYVER/site-packages/UNKNOWN-0.0.0-py$PYVER.egg-info/* $PKG/usr/lib$LIBDIRSUFFIX/python$PYVER/site-packages/$PRGNAM-$VERSION-py$PYVER.egg-info
rmdir $PKG/usr/include/python$PYVER/UNKNOWN
rmdir $PKG/usr/lib$LIBDIRSUFFIX/python$PYVER/site-packages/UNKNOWN-0.0.0-py$PYVER.egg-info
fi

mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
ChangeLog COPYING CREDITS.rst README.rst TODO.rst \
Expand Down
6 changes: 3 additions & 3 deletions python/pygsl/pygsl.info
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
PRGNAM="pygsl"
VERSION="2.3.3"
VERSION="2.5.1"
HOMEPAGE="https://github.com/pygsl/pygsl/"
DOWNLOAD="https://files.pythonhosted.org/packages/15/f4/139020a271ebd4dd25b8db53edca042d49890bda53587a904e0fa75310b0/pygsl-2.3.3.tar.gz"
MD5SUM="348c64a43d9bc547b092a00930c1c005"
DOWNLOAD="https://github.com/pygsl/pygsl/archive/refs/tags/v2.5.1/pygsl-2.5.1.tar.gz"
MD5SUM="8b1689b8cc20955a8a6516255fd59df9"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="python3-numpy"
Expand Down