python-qt5: add PyQt5.sip module
PATCH 1/1 python-qt5: add PyQt5.sip module
This fixes the following runtime error when importing PyQt5 in python:
from PyQt5.QtCore import *
ModuleNotFoundError: No module named 'PyQt5.sip'
Signed-off-by Ralf Dragon <[email protected]>
--- package/Config.in | 1 + package/python-pyqt5/Config.in | 1 + package/python-sip-qt5/Config.in | 10 ++++++++++ package/python-sip-qt5/python-sip-qt5.hash | 4 ++++ package/python-sip-qt5/python-sip-qt5.mk | 15 +++++++++++++++ 5 files changed, 31 insertions(+) create mode 100644 package/python-sip-qt5/Config.in create mode 100644 package/python-sip-qt5/python-sip-qt5.hash create mode 100644 package/python-sip-qt5/python-sip-qt5.mk
package/Config.in +1 -0
@@ -1292,6 +1292,7 @@ menu "External python modules" source "package/python-simplelogging/Config.in" source "package/python-simplesqlite/Config.in" source "package/python-sip/Config.in" + source "package/python-sip-qt5/Config.in" source "package/python-six/Config.in" source "package/python-slob/Config.in" source "package/python-smbprotocol/Config.in"
package/python-pyqt5/Config.in +1 -0
@@ -5,6 +5,7 @@ config BR2_PACKAGE_PYTHON_PYQT5 bool "python-pyqt5" depends on BR2_PACKAGE_QT5 select BR2_PACKAGE_PYTHON_SIP + select BR2_PACKAGE_PYTHON_SIP_QT5 select BR2_PACKAGE_QT5BASE_GUI help Python bindings for Qt 5
package/python-sip-qt5/Config.in new file +10 -0
@@ -0,0 +1,10 @@ +config BR2_PACKAGE_PYTHON_SIP_QT5 + bool "python-sip-qt5" + depends on BR2_PACKAGE_PYTHON_PYQT5 + depends on BR2_PACKAGE_PYTHON_SIP + help + SIP is a tool that makes it very easy to create Python + bindings for C and C++ libraries. It was originally + developed to create PyQt, the Python bindings for the Qt + toolkit, but can be used to create bindings for any C or C++ + library.
package/python-sip-qt5/python-sip-qt5.hash new file +4 -0
@@ -0,0 +1,4 @@ +# from https://pypi.org/project/PyQt5-sip/12.12.1 + +sha256 8fdc6e0148abd12d977a1d3828e7b79aae958e83c6cb5adae614916d888a6b10 PyQt5_sip-12.12.1.tar.gz +md5 c2117da3b4c0e081c1c5a9088b8a4d55 PyQt5_sip-12.12.1.tar.gz
package/python-sip-qt5/python-sip-qt5.mk new file +15 -0
@@ -0,0 +1,15 @@ +################################################################################ +# +# python-SIP-QT5 +# +################################################################################ + +PYTHON_SIP_QT5_VERSION = 12.12.1 +PYTHON_SIP_QT5_SITE = https://files.pythonhosted.org/packages/c1/61/4055e7a0f36339964956ff415e36f4abf82561904cc49c021da32949fc55 +PYTHON_SIP_QT5_SOURCE = PyQt5_sip-$(PYTHON_SIP_QT5_VERSION).tar.gz +PYTHON_SIP_QT5_LICENSE = MIT +PYTHON_SIP_QT5_LICENSE_FILES = LICENSE +PYTHON_SIP_QT5_SETUP_TYPE = setuptools +PYTHON_SIP_QT5_DEPENDENCIES += python-sip + +$(eval $(python-package))
Signature · 6 lines
2.39.2 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot