the pyi names start with a '_'.
Trying to install a QGIS with the python support generated from SIP 4 fails with this error:
```
-- Set non-toolchain portion of runtime path of "/usr/local/share/qgis/python/qgis/_gui.so" to ""
CMake Error at python/cmake_install.cmake:142 (file):
file INSTALL cannot find
"/home/XXXX/build/output/python/qgis/_3d_p.pyi": No such file or
directory.
Call Stack (most recent call first):
cmake_install.cmake:72 (include)
```
This is because, the generated pyi file is named `3d_p.pyi` and not `_3d_p.pyi`
This is fixed by adding the missing underscore.
Related: https://github.com/qgis/QGIS/pull/58562
Related: https://github.com/qgis/QGIS/pull/58534
This uses the same targets and variables introduced in
the FindSQLite3 module in CMake starting with version 3.14.
The other CMakeFiles.txt are modified accordingly.
The module patching for _3d was not working at all, because
the same logic which works for other modules with a private _module
copy clashed with the approach of exposing the public 3d module
as qgis._3d
Work around this by renaming the private internal module as _3d_p,
so that the monkey patching logic from sip is correctly run
when the module is loaded.
Fixes broken API in 3d module for renamed enums, and fixes the
broken PyQGIS doc for the 3d module
* create map file for class / header files for PyQGIS API docs
* create map files
* install file
* add line numbers
* also add methods
* wait to sort
* more methods
* fix CMakeLists install
* fix sorting
* fix spell check
* remove map files for Qt6
* Revert "remove map files for Qt6"
This reverts commit 972f483410f556d1735a2070943b8ad9e2522c5e.
* do not test class_map files + auto sipify_all on branches
* fix warning
auto_generated/sensor/qgsabstractsensor.sip: In function ‘const sipTypeDef* sipSubClass_QgsAbstractSensor(void**)’:
auto_generated/sensor/qgsabstractsensor.sip:35: error: ‘QgsSerialPortSensor’ does not name a type; did you mean ‘sipName_QgsSerialPortSensor’?
In file included from /path/to/QGIS/build/python/core/auto_generated/pointcloud/qgspointcloudlayerexporter.sip:242:
/path/to/QGIS/src/core/pointcloud/qgspointcloudlayerexporter.h:28:10: fatal error: pdal/PointView.hpp: No such file or directory
28 | #include <pdal/PointView.hpp>
| ^~~~~~~~~~~~~~~~~~~~
* [cmake] generalize Python output directory in UseTest macro
this is helpful in case we set up another python output directory (eg PySide2)
* define python output directories to the parent scope
* try with target_include_directories
* define vars on top level
* Update UsePythonTest.cmake
* some cleanup
* more cleanup
* fix uic
* fix path for all platforms
* fix var