/*
 * Composite module code.
 *
 * Generated by SIP 6.6.2
 */

#if !defined(Py_LIMITED_API)
#define Py_LIMITED_API
#endif

#include "sip.h"


static void sip_import_component_module(PyObject *d, const char *name)
{
    PyObject *mod;

    PyErr_Clear();

    mod = PyImport_ImportModule(name);

    /*
     * Note that we don't complain if the module can't be imported.  This
     * is a favour to Linux distro packagers who like to split PyQt into
     * different sub-packages.
     */
    if (mod)
    {
        PyDict_Merge(d, PyModule_GetDict(mod), 0);
        Py_DECREF(mod);
    }
}


/* The Python module initialisation function. */
#if defined(SIP_STATIC_MODULE)
PyObject *PyInit_Qt(void)
#else
PyMODINIT_FUNC PyInit_Qt(void)
#endif
{

    static PyModuleDef sip_module_def = {
        PyModuleDef_HEAD_INIT,
        "PyQt5.Qt",
        SIP_NULLPTR,
        -1,
        SIP_NULLPTR,
        SIP_NULLPTR,
        SIP_NULLPTR,
        SIP_NULLPTR,
        SIP_NULLPTR
    };

    PyObject *sipModule, *sipModuleDict;

    if ((sipModule = PyModule_Create(&sip_module_def)) == SIP_NULLPTR)
        return SIP_NULLPTR;

    sipModuleDict = PyModule_GetDict(sipModule);

    sip_import_component_module(sipModuleDict, "PyQt5.QtCore");
    sip_import_component_module(sipModuleDict, "PyQt5.QtNetwork");
    sip_import_component_module(sipModuleDict, "PyQt5.QtGui");
    sip_import_component_module(sipModuleDict, "PyQt5.QtWidgets");
    sip_import_component_module(sipModuleDict, "PyQt5.QtQml");
    sip_import_component_module(sipModuleDict, "PyQt5.QtBluetooth");
    sip_import_component_module(sipModuleDict, "PyQt5.QtDBus");
    sip_import_component_module(sipModuleDict, "PyQt5.QtDesigner");
    sip_import_component_module(sipModuleDict, "PyQt5.QtHelp");
    sip_import_component_module(sipModuleDict, "PyQt5.QtMultimedia");
    sip_import_component_module(sipModuleDict, "PyQt5.QtMultimediaWidgets");
    sip_import_component_module(sipModuleDict, "PyQt5.QtNfc");
    sip_import_component_module(sipModuleDict, "PyQt5.QtOpenGL");
    sip_import_component_module(sipModuleDict, "PyQt5.QtPositioning");
    sip_import_component_module(sipModuleDict, "PyQt5.QtLocation");
    sip_import_component_module(sipModuleDict, "PyQt5.QtPrintSupport");
    sip_import_component_module(sipModuleDict, "PyQt5.QtQuick");
    sip_import_component_module(sipModuleDict, "PyQt5.QtQuick3D");
    sip_import_component_module(sipModuleDict, "PyQt5.QtQuickWidgets");
    sip_import_component_module(sipModuleDict, "PyQt5.QtRemoteObjects");
    sip_import_component_module(sipModuleDict, "PyQt5.QtSensors");
    sip_import_component_module(sipModuleDict, "PyQt5.QtSerialPort");
    sip_import_component_module(sipModuleDict, "PyQt5.QtSql");
    sip_import_component_module(sipModuleDict, "PyQt5.QtSvg");
    sip_import_component_module(sipModuleDict, "PyQt5.QtTest");
    sip_import_component_module(sipModuleDict, "PyQt5.QtTextToSpeech");
    sip_import_component_module(sipModuleDict, "PyQt5.QtWebChannel");
    sip_import_component_module(sipModuleDict, "PyQt5.QtWebKit");
    sip_import_component_module(sipModuleDict, "PyQt5.QtWebKitWidgets");
    sip_import_component_module(sipModuleDict, "PyQt5.QtWebSockets");
    sip_import_component_module(sipModuleDict, "PyQt5.QtX11Extras");
    sip_import_component_module(sipModuleDict, "PyQt5.QtXml");
    sip_import_component_module(sipModuleDict, "PyQt5.QtXmlPatterns");

    PyErr_Clear();

    return sipModule;
}
