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


Commits:
995916c6 by Jelle van der Waa at 2024-03-02T15:01:30+01:00
Don't hardcode the python version in PYTHONPATH

- - - - -


1 changed file:

- PKGBUILD


Changes:

=====================================
PKGBUILD
=====================================
@@ -25,7 +25,8 @@ build() {
 check() {
   cd service-identity
   python -m installer --destdir=tmp_install dist/*.whl
-  PYTHONPATH="$PWD/tmp_install/usr/lib/python3.11/site-packages" pytest
+  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
 }
  
 package() {



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-service-identity/-/commit/995916c6ef25f2724df866b297aee1d500129f9c

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-service-identity/-/commit/995916c6ef25f2724df866b297aee1d500129f9c
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to