diff options
| author | Christian Tismer <tismer@stackless.com> | 2024-10-12 17:03:18 +0200 |
|---|---|---|
| committer | Christian Tismer <tismer@stackless.com> | 2024-10-17 15:09:42 +0200 |
| commit | 29fb43f5b58d9f4f0e9a6b458240dcaa83a5f0a3 (patch) | |
| tree | 09538db11ee9f07dfbff84891aaf568663727fcb /build_scripts/main.py | |
| parent | 7632530b8f6aa75f2ae904d883c419e6cd58c1bb (diff) | |
type hints: Install a permanent test for error-free pyi files
Testing Mypy on the whole project costs some time,
about 33 s on a Mac Studio Max M1 in debug mode.
On CI with release Windows, this is about 8 sec.
An option "--skip-mypy-test" is added to save time.
The mypy tool is only enforced to exist in COIN.
Otherwise it is optional.
Task-number: PYSIDE-2846
Change-Id: Ibbabbf6b893537ac923fbbaba9ff832ebd675a21
Fixes: PYSIDE-2672
Fixes: PYSIDE-2886
Pick-to: 6.8
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'build_scripts/main.py')
| -rw-r--r-- | build_scripts/main.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/build_scripts/main.py b/build_scripts/main.py index 4d541b3ac..cd21eb468 100644 --- a/build_scripts/main.py +++ b/build_scripts/main.py @@ -860,6 +860,9 @@ class PysideBuild(_build, CommandMixin, BuildInfoCollectorMixin): # cross-compiling pyside. cmake_cmd.append(f"-DQFP_SHIBOKEN_TARGET_PATH={self.install_dir}") + if OPTION["SKIP_MYPY_TEST"]: + cmake_cmd.append("-DSKIP_MYPY_TEST=1") + if self.cmake_toolchain_file: cmake_cmd.append(f"-DCMAKE_TOOLCHAIN_FILE={self.cmake_toolchain_file}") |
