git » python-pivy.git » commit 30b0acd

upgpkg: 0.6.9.a0-2

author David Runge
2024-03-01 18:50:37 UTC
committer David Runge
2024-03-01 18:50:37 UTC
parent 09ac5a070f54928ffa90fa7973a966906d1ce73a

upgpkg: 0.6.9.a0-2

Rebuild to compile Python bytecode as cmake does not do that.

.SRCINFO +1 -1
PKGBUILD +5 -1

diff --git a/.SRCINFO b/.SRCINFO
index 40bd7a2..50b33c8 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
 pkgbase = python-pivy
 	pkgdesc = Bindings to Coin3D
 	pkgver = 0.6.9.a0
-	pkgrel = 1
+	pkgrel = 2
 	url = https://github.com/coin3d/pivy
 	arch = x86_64
 	license = ISC
diff --git a/PKGBUILD b/PKGBUILD
index 3653db6..1914457 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,7 +4,7 @@
 _name=pivy
 pkgname=python-pivy
 pkgver=0.6.9.a0
-pkgrel=1
+pkgrel=2
 pkgdesc='Bindings to Coin3D'
 arch=(x86_64)
 license=(ISC)
@@ -47,4 +47,8 @@ package() {
   cd $_name-$pkgver
   DESTDIR="$pkgdir" cmake --install build
   install -vDm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
+
+  # compile Python bytecode as cmake does not do that for us
+  python -m compileall -d /usr/lib "$pkgdir/usr/lib"
+  python -O -m compileall -d /usr/lib "$pkgdir/usr/lib"
 }