author | Daniel M. Capella
<polyzen@archlinux.org> 2021-11-07 13:53:47 UTC |
committer | Daniel M. Capella
<polyzen@archlinux.org> 2021-11-07 13:53:47 UTC |
parent | b551fe1e1226251f9cee59c926a23b07b1d29cd9 |
PKGBUILD | +3 | -4 |
diff --git a/PKGBUILD b/PKGBUILD index 877ca91..2e6449a 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -39,10 +39,9 @@ build() { check() { cd pytest-$pkgver - mkdir -p temp - local site_packages=$(python -c "import site; print(site.getsitepackages()[0])") - python setup.py install --root=temp --optimize=1 --skip-build - PATH="$PWD/temp/usr/bin:$PATH" PYTHONPATH="$PWD/temp/$site_packages" pytest + python -m venv --system-site-packages test-env + test-env/bin/python setup.py install --optimize=1 --skip-build + test-env/bin/python -m pytest } package() {