diff options
author | Claudia Pellegrino | 2024-06-13 08:51:57 +0200 |
---|---|---|
committer | Claudia Pellegrino | 2024-06-13 08:51:57 +0200 |
commit | 28abd1681e805cc9b59b2141a26511cf9259c801 (patch) | |
tree | b0c79c445df9f16b73b71303e20d9554a3b7b4e9 /PKGBUILD | |
parent | c68941fd4eb59d0ee67d4130b3e6791812850c1e (diff) | |
download | aur-28abd1681e805cc9b59b2141a26511cf9259c801.tar.gz |
Simplify `check`
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 10 |
1 files changed, 4 insertions, 6 deletions
@@ -57,12 +57,10 @@ build() { check() { cd "${srcdir}/${_gitpkgname}-${pkgver}" - python -m venv --clear --system-site-packages .venv - # shellcheck disable=SC1091 - source .venv/bin/activate - pip install --force-reinstall --no-deps dist/*.whl - python -m unittest discover -v - deactivate + local _site_packages + _site_packages="$(python -c 'import site; print(site.getsitepackages()[0])')" + python -m installer --destdir=tmp_install dist/*.whl + PYTHONPATH="${PWD}/tmp_install/${_site_packages}" python -m unittest discover -v } package() { |