PyQt4 provides two version for some py files: one for python2.x and one for
python3.x. This two versions are installed in TARGET_DIR.
After installing files, python is used to generate all .pyc files, but fails
like :
class ProxyBase(metaclass=ProxyMetaclass):
^
SyntaxError: invalid syntax
This is not a package build failure and this fix is only cosmetic.
This patch suppress directory for not targeted python version.
Signed-off-by: Gwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Fix:
http://autobuild.buildroot.net/results/206/2062208c171207428c9121215971e00c52bf306a/
According to configure-ng.py, PyQt_NoOpenGLES must be added to qtdetail when
QT_OPENGL_ES is set.
[Thomas: add comment to explain the double negation.]
Signed-off-by: Gwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
[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 <pkg>_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.]
Signed-off-by: Gwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com>
Cc: Sergey Kostanbaev <sergey.kostanbaev@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>