git » python-keyring.git » commit 99a6279

remove hardcoded python version strings

author T.J. Townsend
2023-01-22 19:39:40 UTC
committer T.J. Townsend
2023-01-22 19:39:40 UTC
parent 58a5de7b5120e9b7a38c2fc991b69ce7ce2c32ff

remove hardcoded python version strings

PKGBUILD +2 -1

diff --git a/PKGBUILD b/PKGBUILD
index 713735d..4a3c0f0 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -40,7 +40,8 @@ package() {
   python -m installer -d "$pkgdir" dist/*.whl
   install -Dm 644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
 
-  rm -rf "$pkgdir"/usr/lib/python3.10/site-packages/keyring/tests
+  local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
+  rm -rf "$pkgdir"/$site_packages/keyring/tests
 }
 
 # vim:set ts=2 sw=2 et: