author | loqs
<2227-loqs@users.noreply.gitlab.archlinux.org> 2024-03-01 19:29:23 UTC |
committer | Jelle van der Waa
<jelle@archlinux.org> 2024-03-02 11:18:43 UTC |
parent | 8dfdb917d8d5b8432b513bc5033a4c20251c0428 |
PKGBUILD | +2 | -1 |
diff --git a/PKGBUILD b/PKGBUILD index 16adb08..306699d 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -25,7 +25,8 @@ build() { check() { cd "${pkgname}" - PYTHONPATH="$PWD/build/lib.linux-$CARCH-cpython-311" pytest + local python_version=$(python -c 'import sys; print("".join(map(str, sys.version_info[:2])))') + PYTHONPATH="$PWD/build/lib.linux-$CARCH-cpython-$python_version" pytest } package() {