diff options
Diffstat (limited to 'python')
-rw-r--r-- | python/threadpoolctl/threadpoolctl.SlackBuild | 19 | ||||
-rw-r--r-- | python/threadpoolctl/threadpoolctl.info | 6 |
2 files changed, 19 insertions, 6 deletions
diff --git a/python/threadpoolctl/threadpoolctl.SlackBuild b/python/threadpoolctl/threadpoolctl.SlackBuild index 8e31541328..7f33fbae45 100644 --- a/python/threadpoolctl/threadpoolctl.SlackBuild +++ b/python/threadpoolctl/threadpoolctl.SlackBuild @@ -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 diff --git a/python/threadpoolctl/threadpoolctl.info b/python/threadpoolctl/threadpoolctl.info index 1565b0bc96..b37330d661 100644 --- a/python/threadpoolctl/threadpoolctl.info +++ b/python/threadpoolctl/threadpoolctl.info @@ -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="" |