Date: Friday, January 20, 2023 @ 21:27:30
  Author: jelle
Revision: 1387174

Remove hardcoded python version strings

Modified:
  python-threadloop/trunk/PKGBUILD

----------+
 PKGBUILD |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2023-01-20 21:20:47 UTC (rev 1387173)
+++ PKGBUILD    2023-01-20 21:27:30 UTC (rev 1387174)
@@ -37,7 +37,8 @@
   python setup.py install --root="$pkgdir" --optimize=1
 
   # It's only present when tests are enabled, so adding -f
-  rm -rf "$pkgdir"/usr/lib/python3.10/site-packages/tests
+  local python_version=$(python -c 'import sys; print(".".join(map(str, 
sys.version_info[:2])))')
+  rm -rf "$pkgdir"/usr/lib/python${python_version}/site-packages/tests
 
   install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
 }

Reply via email to