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


Commits:
24829c19 by Jelle van der Waa at 2024-03-02T14:55:24+01:00
Don't hardcode python version in PYTHONPATH

- - - - -


1 changed file:

- PKGBUILD


Changes:

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



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-cffi/-/commit/24829c1952110fed984a965b2292cda0aa748f5d

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


Reply via email to