diff --git a/trunk/PKGBUILD b/trunk/PKGBUILD index 399ead1..d8498e8 100644 --- a/trunk/PKGBUILD +++ b/trunk/PKGBUILD @@ -70,6 +70,13 @@ package_python-pyqt5(){ # 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 -rf "$pkgdir"/usr/lib/python*/site-packages/PyQt5/uic/port_v2 + + # compile Python bytecode + python -O -m compileall -d / "$pkgdir"/usr/lib + python -m compileall -d / "$pkgdir"/usr/lib + # Provided by pyqt-common rm "$pkgdir"/usr/share/qt/qsci/api/python/PyQt5.api } @@ -96,6 +103,13 @@ package_python2-pyqt5(){ # 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 -rf "$pkgdir"/usr/lib/python*/site-packages/PyQt5/uic/port_v3 + + # compile Python bytecode + python2 -O -m compileall -d / "$pkgdir"/usr/lib + python2 -m compileall -d / "$pkgdir"/usr/lib + # Fix conflicts with python-pyqt5 mv "$pkgdir"/usr/bin/{,python2-}pyuic5 mv "$pkgdir"/usr/bin/{,python2-}pylupdate5