3 Commits

Author SHA1 Message Date
Felix Yan
2b621d5b6d Python 3.10 rebuild 2021-12-01 00:37:26 +00:00
Daniel M. Capella
f7d114e115 Use venv when tests need to import built project
python-setuptools-scm is the only package I hit a wall with:
> ==> Starting check()...
> running install
> running bdist_egg
> bdist_egg is forbidden, please update to setuptools>=45 which uses pip
2021-11-07 13:53:47 +00:00
Evangelos Foutras
b4f66f8614 Remove PYTHONHASHSEED workaround now set by pacman 2021-09-07 02:35:30 +00:00

View File

@@ -4,7 +4,7 @@
_name=pygls
pkgname=python-pygls
pkgver=0.11.2
pkgrel=1
pkgrel=2
pkgdesc='Pythonic generic implementation of the Language Server Protocol'
arch=('any')
url=https://github.com/openlawlibrary/pygls
@@ -29,13 +29,12 @@ check() {
package() {
cd $_name-$pkgver
export PYTHONHASHSEED=0
python -m install --optimize=1 --destdir="$pkgdir" dist/*.whl
# Symlink license file
local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
install -d "$pkgdir"/usr/share/licenses/$pkgname
ln -s $site_packages/$_name-$pkgver.dist-info/LICENSE.txt \
ln -s "$site_packages"/$_name-$pkgver.dist-info/LICENSE.txt \
"$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
}