python/threadpoolctl: Update for 3.1.0
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
185d76c39e
commit
86a8c3142f
|
@ -25,7 +25,7 @@
|
|||
cd $(dirname $0) ; CWD=$(pwd)
|
||||
|
||||
PRGNAM=threadpoolctl
|
||||
VERSION=${VERSION:-3.0.0}
|
||||
VERSION=${VERSION:-3.1.0}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
PKGTYPE=${PKGTYPE:-tgz}
|
||||
|
@ -75,13 +75,26 @@ 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
|
||||
# Use this setup.py shim:
|
||||
cat << EOF > setup.py
|
||||
from distutils.core import setup
|
||||
setup(name='${PRGNAM}',
|
||||
version='${VERSION}',
|
||||
py_modules=['${PRGNAM}'],
|
||||
)
|
||||
EOF
|
||||
|
||||
# With the shim, it's a good idea to use "unshare -n" to prevent downloading
|
||||
# anything extra:
|
||||
unshare -n python3 setup.py install --root=$PKG || exit 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
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cp -a *.md LICENSE PKG-INFO dev-requirements.txt $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cp -a \
|
||||
CHANGES.md LICENSE multiple_openmp.md PKG-INFO README.md dev-requirements.txt \
|
||||
$PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||
|
||||
mkdir -p $PKG/install
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
PRGNAM="threadpoolctl"
|
||||
VERSION="3.0.0"
|
||||
VERSION="3.1.0"
|
||||
HOMEPAGE="https://github.com/joblib/threadpoolctl/"
|
||||
DOWNLOAD="https://files.pythonhosted.org/packages/source/t/threadpoolctl/threadpoolctl-3.0.0.tar.gz"
|
||||
MD5SUM="7ea59df7897f267528e9254552ab004c"
|
||||
DOWNLOAD="https://files.pythonhosted.org/packages/source/t/threadpoolctl/threadpoolctl-3.1.0.tar.gz"
|
||||
MD5SUM="e278b89038d9c9b39e7afafb8f5f87a3"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
REQUIRES=""
|
||||
|
|
Loading…
Reference in New Issue