Jelle van der Waa pushed to branch main at Arch Linux / Packaging / Packages / 
python-pytest-ruff


Commits:
c71db33d by Jelle van der Waa at 2024-03-02T15:10:51+01:00
Don't hardcode the Python version

- - - - -


1 changed file:

- PKGBUILD


Changes:

=====================================
PKGBUILD
=====================================
@@ -28,7 +28,8 @@ build() {
 check() {
   cd pytest-ruff
   python -m installer -d tmp_install dist/*.whl
-  PYTHONPATH="$PWD/tmp_install/usr/lib/python3.11/site-packages" \
+  local python_version=$(python -c 'import sys; print(".".join(map(str, 
sys.version_info[:2])))')
+  PYTHONPATH="$PWD/tmp_install/usr/lib/python${python_version}/site-packages" \
     pytest
 }
 



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-pytest-ruff/-/commit/c71db33de4d1ce4612f3ed5fc4f342ea35858317

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-pytest-ruff/-/commit/c71db33de4d1ce4612f3ed5fc4f342ea35858317
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to