Details
Description
I am using shiboken6-generator to generate bindings to my Qt component and I need to load typesystem_quick.xml
This is included with PySide6 but it references XML entities that do not exist such as &glgetv_includes;
These entity references should resolve to a typesystem file like typesystem_glgetv_includes.xml - but these are not include in the PySide6 typesystem files.
https://doc.qt.io/qtforpython-6/shiboken6/typesystem_specifying_types.html#including-snippets
Simple reproduction:
$ python -m venv venv $ PIP_EXTRA_INDEX_URL=https://download.qt.io/official_releases/QtForPython venv/bin/pip install PySide6 shiboken6 shiboken6-generator $ touch bindings.h $ cat <<EOF > bindings.xml <typesystem package="shiboken_test"> <load-typesystem name="typesystem_quick.xml" generate="no"/> </typesystem> EOF $ venv/bin/shiboken6 --generator-set=shiboken --enable-pyside-extensions -T../venv/lib/python3.11/site-packages/PySide6/typesystems/ --output-directory=/tmp bindings.h bindings.xml qt.shiboken: (bindings) Cannot resolve entity "glgetv_includes": Unable to resolve: glgetv_includes qt.shiboken: (bindings) /Users/aw/Projects/rectalogic/vsqfx/experiments/builder/venv/lib/python3.11/site-packages/PySide6/typesystems/typesystem_opengl.xml:159:23: Error: Entity 'glgetv_includes' not declared. qt.shiboken: (bindings) /Users/aw/Projects/rectalogic/vsqfx/experiments/builder/venv/lib/python3.11/site-packages/PySide6/typesystems/typesystem_quick.xml:10:65: Error: Failed to parse: 'typesystem_opengl.xml' qt.shiboken: (bindings) /Users/aw/Projects/rectalogic/vsqfx/experiments/builder/shiboken-test/bindings.xml:2:64: Error: Failed to parse: 'typesystem_quick.xml' Cannot parse file: bindings.xml shiboken: Error running ApiExtractor. Command line: "--generator-set=shiboken" "--enable-pyside-extensions" "-T../venv/lib/python3.11/site-packages/PySide6/typesystems/" "--output-directory=/tmp" "bindings.h" "bindings.xml"