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


Commits:
d33ef003 by Jelle van der Waa at 2024-03-02T17:44:45+01:00
Don't hardcode python version

- - - - -


1 changed file:

- PKGBUILD


Changes:

=====================================
PKGBUILD
=====================================
@@ -24,11 +24,12 @@ build() {
 
 check() {
   cd setuptools-rust
+  local python_version=$(python -c 'import sys; print(".".join(map(str, 
sys.version_info[:2])))')
   for _dir in examples/*; do
     pushd $_dir
     PYTHONPATH="$PWD/../.." python -m build -nw
     python -m installer -d tmp_install dist/*.whl
-    [[ -d tests || -d test ]] && 
PYTHONPATH="$PWD/tmp_install/usr/lib/python3.11/site-packages" pytest tests
+    [[ -d tests || -d test ]] && 
PYTHONPATH="$PWD/tmp_install/usr/lib/python$python_version/site-packages" 
pytest tests
     popd
   done
   pytest --doctest-modules setuptools_rust



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-setuptools-rust/-/commit/d33ef003b5efbb69590c82fa980a558d02c502dc

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


Reply via email to