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


Commits:
5ce143a1 by Jelle van der Waa at 2024-03-02T14:43:23+01:00
Don't hardcode the PYTHONPATH

- - - - -


1 changed file:

- PKGBUILD


Changes:

=====================================
PKGBUILD
=====================================
@@ -26,7 +26,8 @@ build() {
 check() {
   cd latex2mathml-$pkgver
   python -m installer -d 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-latex2mathml/-/commit/5ce143a1d9f7287b18a805cdfc1faf4784cb40de

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


Reply via email to