diff options
author | T.J. Townsend | 2023-01-22 22:43:46 +0000 |
---|---|---|
committer | T.J. Townsend | 2023-01-22 22:43:46 +0000 |
commit | e89e2adefd162849a0b6d293cb4b9cb7cd343916 (patch) | |
tree | 162d864d90ecd7e8b242c328703e6fb398647a4b | |
parent | 31e8c8c1c805933b645b645076f4dcb4061fc844 (diff) | |
download | aur-e89e2adefd162849a0b6d293cb4b9cb7cd343916.tar.gz |
remove hardcoded python version strings
-rw-r--r-- | PKGBUILD | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -31,7 +31,8 @@ check() { cd pytest-black-$pkgver python setup.py install --root="$PWD/tmp_install" --optimize=1 - PYTHONPATH="$PWD/tmp_install/usr/lib/python3.10/site-packages:$PYTHONPATH:$PWD/tests" py.test + local site_packages=$(python -c "import site; print(site.getsitepackages()[0])") + PYTHONPATH="$PWD/tmp_install/$site_packages:$PYTHONPATH:$PWD/tests" py.test } package() { |