diff options
-rw-r--r-- | python/python3-websockets/python3-websockets.SlackBuild | 26 | ||||
-rw-r--r-- | python/python3-websockets/python3-websockets.info | 8 |
2 files changed, 10 insertions, 24 deletions
diff --git a/python/python3-websockets/python3-websockets.SlackBuild b/python/python3-websockets/python3-websockets.SlackBuild index 3be3cf0018303..2f78b2904e9f4 100644 --- a/python/python3-websockets/python3-websockets.SlackBuild +++ b/python/python3-websockets/python3-websockets.SlackBuild @@ -26,7 +26,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=python3-websockets SRCNAM=websockets -VERSION=${VERSION:-12.0} +VERSION=${VERSION:-13.0.1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -39,9 +39,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,20 +48,6 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -if [ "$ARCH" = "i586" ]; then - SLKCFLAGS="-O2 -march=i586 -mtune=i686" - LIBDIRSUFFIX="" -elif [ "$ARCH" = "i686" ]; then - SLKCFLAGS="-O2 -march=i686 -mtune=i686" - LIBDIRSUFFIX="" -elif [ "$ARCH" = "x86_64" ]; then - SLKCFLAGS="-O2 -fPIC" - LIBDIRSUFFIX="64" -else - SLKCFLAGS="-O2" - LIBDIRSUFFIX="" -fi - set -e rm -rf $PKG @@ -76,9 +59,12 @@ cd $SRCNAM-$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 {} \+ + +PYVER=$(python3 -c 'import sys; print("%d.%d" % sys.version_info[:2])') +export PYTHONPATH=/opt/python$PYVER/site-packages python3 -m build --wheel --no-isolation python3 -m installer --destdir "$PKG" dist/*.whl diff --git a/python/python3-websockets/python3-websockets.info b/python/python3-websockets/python3-websockets.info index 003a304dcd3d5..720ac9a694862 100644 --- a/python/python3-websockets/python3-websockets.info +++ b/python/python3-websockets/python3-websockets.info @@ -1,10 +1,10 @@ PRGNAM="python3-websockets" -VERSION="12.0" +VERSION="13.0.1" HOMEPAGE="https://github.com/aaugustin/websockets" -DOWNLOAD="https://files.pythonhosted.org/packages/2e/62/7a7874b7285413c954a4cca3c11fd851f11b2fe5b4ae2d9bee4f6d9bdb10/websockets-12.0.tar.gz" -MD5SUM="49d033c8236aa56ba2524f65570a27c5" +DOWNLOAD="https://files.pythonhosted.org/packages/source/w/websockets/websockets-13.0.1.tar.gz" +MD5SUM="b3d1cc7a447c4f91b0c6f24beaf312cc" DOWNLOAD_x86_64="" MD5SUM_x86_64="" -REQUIRES="python3-wheel python3-build" +REQUIRES="python3-setuptools-opt" MAINTAINER="Dimitris Zlatanidis" EMAIL="dslackw@gmail.com" |