Date: Sunday, January 15, 2023 @ 10:53:55
  Author: alucryd
Revision: 1383615

python-trio-asyncio 0.12.0-5: fix the hardcoded python version fix

Modified:
  python-trio-asyncio/trunk/PKGBUILD

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2023-01-15 10:51:52 UTC (rev 1383614)
+++ PKGBUILD    2023-01-15 10:53:55 UTC (rev 1383615)
@@ -2,7 +2,7 @@
 
 pkgname=python-trio-asyncio
 pkgver=0.12.0
-pkgrel=4
+pkgrel=5
 pkgdesc='A re-implementation of the asyncio mainloop on top of Trio'
 arch=(any)
 url=https://github.com/python-trio/trio-asyncio
@@ -38,7 +38,8 @@
 package() {
   cd trio-asyncio
   python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
-  rm -rf ${pkgdir}/usr/lib/$(python -c 'import sys; print("".join(map(str, 
sys.version_info[:2])))')/site-packages/tests
+  local site_packages=$(python -c "import site; 
print(site.getsitepackages()[0])")
+  rm -rf "${pkgdir}"${site_packages}/tests
   install -Dm 644 LICENSE -t 
"${pkgdir}"/usr/share/licenses/python-trio-asyncio/
   install -Dm 644 LICENSE.MIT -t 
"${pkgdir}"/usr/share/licenses/python-trio-asyncio/
 }

Reply via email to