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


Commits:
e564a248 by Jelle van der Waa at 2024-03-02T14:40:28+01:00
Don't hardcode PYTHONPATH to 3.11

- - - - -


1 changed file:

- PKGBUILD


Changes:

=====================================
PKGBUILD
=====================================
@@ -29,7 +29,8 @@ check() {
   cd pycryptodome-$pkgver
   python -m installer -d tmpinstall dist/*.whl
   python -m installer -d tmpinstall test_vectors/dist/*.whl
-  PYTHONPATH="$PWD/tmpinstall/usr/lib/python3.11/site-packages" python -m 
Crypto.SelfTest
+  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" 
python -m Crypto.SelfTest
 }
 
 package() {



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-pycryptodome/-/commit/e564a24857350305b19f3c1b3290b769f552bd86

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


Reply via email to