diff options
Diffstat (limited to 'python/python3-lsp-server/python3-lsp-server.SlackBuild')
| -rw-r--r-- | python/python3-lsp-server/python3-lsp-server.SlackBuild | 38 | 
1 files changed, 14 insertions, 24 deletions
diff --git a/python/python3-lsp-server/python3-lsp-server.SlackBuild b/python/python3-lsp-server/python3-lsp-server.SlackBuild index 665f899d0d..132424d63a 100644 --- a/python/python3-lsp-server/python3-lsp-server.SlackBuild +++ b/python/python3-lsp-server/python3-lsp-server.SlackBuild @@ -2,7 +2,7 @@  # Slackware build script for python3-lsp-server -# Copyright 2023-2024 Isaac Yu <isaacyu@protonmail.com> +# Copyright 2023-2025 Isaac Yu <isaacyu@protonmail.com>  # All rights reserved.  #  # Redistribution and use of this script, with or without modification, is @@ -25,7 +25,7 @@  cd $(dirname $0) ; CWD=$(pwd)  PRGNAM=python3-lsp-server -VERSION=${VERSION:-1.6.0} +VERSION=${VERSION:-1.9.0}  BUILD=${BUILD:-1}  TAG=${TAG:-_SBo}  PKGTYPE=${PKGTYPE:-tgz} @@ -49,20 +49,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 @@ -79,14 +65,18 @@ find -L . \    -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;  # Workarounds for spyder -sed -i "s|autopep8>=1.6.0,<1.7.0|autopep8>=1.6.0|" -i pyproject.toml -sed -i "s|flake8>=5.0.0,<5.1.0|flake8>=5.1.0|" -i pyproject.toml -sed -i "s|jedi>=0.17.2,<0.19.0|jedi>=0.17.2|" -i pyproject.toml -sed -i "s|pycodestyle>=2.9.0,<2.10.0|pycodestyle>=2.9.0|" -i pyproject.toml -sed -i "s|pyflakes>=2.5.0,<2.6.0|pyflakes>=2.5.0|" -i pyproject.toml -sed -i "s|pylint>=2.5.0,<3|pylint>=2.5.0|" -i pyproject.toml - -# Use newer, non-stock setuptools due to package requirements +sed -i "s|autopep8>=2.0.4,<2.1.0|autopep8>=2.0.4|" -i pyproject.toml +sed -i "s|flake8>=6.1.0,<7|flake8>=6.1.0|" -i pyproject.toml +sed -i "s|pycodestyle>=2.11.0,<2.12.0|pycodestyle>=2.11.0|" -i pyproject.toml +sed -i "s|pyflakes>=3.1.0,<3.2.0|pyflakes>=3.1.0|" -i pyproject.toml +sed -i "s|pylint>=2.5.0,<3.1|pylint>=2.5.0|" -i pyproject.toml + +# If yapf is still on 0.32.0, take this into account +# This involves reverting the following pull requests: +# https://github.com/python-lsp/python-lsp-server/pull/346 +# https://github.com/python-lsp/python-lsp-server/pull/377  +sed -i "s|yapf>=0.33.0|yapf>=0.32.0|" -i pyproject.toml +  PYVER=$(python3 -c 'import sys; print("%d.%d" % sys.version_info[:2])')  export PYTHONPATH=/opt/python$PYVER/site-packages/  | 
