diff options
| author | Christian Tismer <tismer@stackless.com> | 2021-07-18 11:21:46 +0200 |
|---|---|---|
| committer | Christian Tismer <tismer@stackless.com> | 2021-07-21 10:01:45 +0200 |
| commit | a9de26109fca55154511f5d074c7d9e135b397f6 (patch) | |
| tree | 4178fcad04b7346c8e9e825ed4c32cfe19aa8fe5 /sources/pyside6/PySide6/support/generate_pyi.py | |
| parent | b032186108c32466abb464ceea2d3ee2975fdc9c (diff) | |
signature: update and make embedding aware
The signature scripts needed an update to make them
work even when no source files are available.
* Access to the license text should avoid source files
* Some loader simplifications are possible since Python 2 is gone
* The import list for PySide is incomplete
* Enforce embedding in COIN mode for better testing
This is a preparational step before the zip file access
becomes totally virtual.
Change-Id: I85e750bb718855f140edac6de34955adbd7843bc
Pick-to: 5.15
Pick-to: 6.1
Task-number: PYSIDE-1621
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'sources/pyside6/PySide6/support/generate_pyi.py')
| -rw-r--r-- | sources/pyside6/PySide6/support/generate_pyi.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sources/pyside6/PySide6/support/generate_pyi.py b/sources/pyside6/PySide6/support/generate_pyi.py index ecc04019b..e618ae0a7 100644 --- a/sources/pyside6/PySide6/support/generate_pyi.py +++ b/sources/pyside6/PySide6/support/generate_pyi.py @@ -99,6 +99,8 @@ def generate_all_pyi(outpath, options): if __name__ == "__main__": + # PYSIDE-1621: Enforce embedding to ensure that it always works. + sys.pyside_uses_embedding = True parser = argparse.ArgumentParser( description="This script generates the .pyi file for all PySide modules.") parser.add_argument("modules", nargs="+", |
