[arch-commits] Commit in pyqt5/trunk (PKGBUILD)

Antonio Rojas arojas at archlinux.org
Mon Jan 28 06:24:15 UTC 2019


    Date: Monday, January 28, 2019 @ 06:24:14
  Author: arojas
Revision: 344889

Compile bytecode (FS#61552)

Modified:
  pyqt5/trunk/PKGBUILD

----------+
 PKGBUILD |   14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-01-27 23:54:42 UTC (rev 344888)
+++ PKGBUILD	2019-01-28 06:24:14 UTC (rev 344889)
@@ -7,7 +7,7 @@
 pkgbase=pyqt5
 pkgname=('pyqt5-common' 'python-pyqt5' 'python2-pyqt5')
 pkgver=5.11.3
-pkgrel=2
+pkgrel=3
 arch=('x86_64')
 url="http://riverbankcomputing.co.uk/software/pyqt/intro"
 license=('GPL')
@@ -70,6 +70,12 @@
   # INSTALL_ROOT is needed for the QtDesigner module, the other Makefiles use DESTDIR
   make DESTDIR="$pkgdir" INSTALL_ROOT="$pkgdir" install -j1
 
+  # Remove unused py2 version of uic modules:
+  rm -r "$pkgdir"/usr/lib/python*/site-packages/PyQt5/uic/port_v2
+
+  # compile Python bytecode
+  python -m compileall -d / "$pkgdir"/usr/lib
+
   # Provided by pyqt-common
   rm "$pkgdir"/usr/share/qt/qsci/api/python/PyQt5.api
 }
@@ -96,6 +102,12 @@
   # INSTALL_ROOT is needed for the QtDesigner module, the other Makefiles use DESTDIR
   make DESTDIR="$pkgdir" INSTALL_ROOT="$pkgdir" install -j1
 
+  # Remove unused py3 version of uic modules:
+  rm -r "$pkgdir"/usr/lib/python*/site-packages/PyQt5/uic/port_v3
+
+  # compile Python bytecode
+  python2 -m compileall -d / "$pkgdir"/usr/lib
+
   # Fix conflicts with python-pyqt5
   mv "$pkgdir"/usr/bin/{,python2-}pyuic5
   mv "$pkgdir"/usr/bin/{,python2-}pylupdate5



More information about the arch-commits mailing list