From: gwenhael.goavec Date: Mon, 20 Apr 2015 09:34:18 +0200 Subject: [Buildroot] [PATCH v3 2/2] python-pyqt: new package In-Reply-To: <20150419192345.3ec38d2a@free-electrons.com> References: <1429430633-12267-1-git-send-email-gwenj@trabucayre.com> <1429430633-12267-2-git-send-email-gwenj@trabucayre.com> <20150419192345.3ec38d2a@free-electrons.com> Message-ID: <20150420093418.59629a18@x230.trabucayre.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net Thomas. Thank for review and corrections. Regards Gwenhael On Sun, 19 Apr 2015 19:23:45 +0200 Thomas Petazzoni wrote: > Gwenhael, > > On Sun, 19 Apr 2015 10:03:53 +0200, Gwenhael Goavec-Merou wrote: > > From: Gwenhael Goavec-Merou > > > > Signed-off-by: Gwenhael Goavec-Merou > > Cc: Sergey Kostanbaev > > Patch applied, after doing some additional changes: > > [Thomas: > - Remove dependency on python (already a dependency of python-sip), > and add a dependency on host-python-sip, since python-sip no longer > depends on host-python-sip. > - Make the code Python 2 / Python 3 compatible (both have been > tested). > - Fix indentation all over the place. > - Remove double quotes when defining variable values, not needed. > - Add _BUILD_CMDS to do the build process separately from the > installation. > - Create a PYTHON_PYQT_CONF_OPTS variable with all the config > options, since some of them are now conditional. > - Use 'compileall' to byte-compile the dummy __init__.py.] > > I also made a fix on python-sip to make things build properly on Python 3. > > I tested PyQt with both Python 2 and Python 3, and I was able to run: > > >>> from PyQt4 import QtCore > >>> QtCore.QDateTime.currentDateTime() > PyQt4.QtCore.QDateTime(2015, 4, 19, 16, 59, 12, 794) > > in both cases. Don't hesitate to test with bigger applications to > confirm that everything is still working fine. > > Thanks! > > Thomas > -- > Thomas Petazzoni, CTO, Free Electrons > Embedded Linux, Kernel and Android engineering > http://free-electrons.com