Commit c5deb9f0 authored by Jeff Huang's avatar Jeff Huang 🤔

[testing] python-pyqt5: compile bytecode

parent 4d033a05
Pipeline #2340 failed with stages
in 1 minute and 51 seconds
pkgbase=pyqt5
pkgname=('python-pyqt5-common' 'python3-pyqt5' 'python2-pyqt5')
pkgver=5.11.3
pkgrel=3
pkgrel=4
arch=('x86_64')
url="https://riverbankcomputing.co.uk/software/pyqt/intro"
license=('GPL')
......@@ -97,6 +97,12 @@ package_python3-pyqt5(){
# INSTALL_ROOT is needed for the QtDesigner module, the other Makefiles use DESTDIR
make DESTDIR="$pkgdir" INSTALL_ROOT="$pkgdir" install
# Remove unused py2 version of uic modules:
rm -r "$pkgdir"/usr/lib/python*/site-packages/PyQt5/uic/port_v2
# compile Python bytecode
python3 -m compileall -d / "$pkgdir"/usr/lib
# Provided by pyqt-common
rm "$pkgdir"/usr/share/qt5/qsci/api/python/PyQt5.api
}
......@@ -123,6 +129,12 @@ package_python2-pyqt5(){
# INSTALL_ROOT is needed for the QtDesigner module, the other Makefiles use DESTDIR
make DESTDIR="$pkgdir" INSTALL_ROOT="$pkgdir" install
# 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 python3-pyqt5
mv "$pkgdir"/usr/bin/{,python2-}pyuic5
mv "$pkgdir"/usr/bin/{,python2-}pylupdate5
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment