Date: Friday, January 20, 2023 @ 21:32:11
  Author: jelle
Revision: 1387177

Remove hardcoded python version strings

Modified:
  python-softlayer/trunk/PKGBUILD

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2023-01-20 21:30:35 UTC (rev 1387176)
+++ PKGBUILD    2023-01-20 21:32:11 UTC (rev 1387177)
@@ -35,7 +35,8 @@
   install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
 
   # 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
 
   # Prevent collisions with `sl` package; This command is deemed deprecated by
   # the project anyway

Reply via email to