From dda759c3e955b38a05749d506c2fc52f81324f0c Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Fri, 3 Mar 2023 13:48:48 +0100 Subject: testwheel.py: Add an option for the examples directory Needs to be specified when examples are removed from the wheels. Pick-to: master Task-number: PYSIDE-2247 Change-Id: Iabff560fcd2381aca1dfbb64895e8366ffdedf9d Reviewed-by: Cristian Maureira-Fredes Reviewed-by: Adrian Herrmann --- scripts/packagetesting/testwheel.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/packagetesting/testwheel.py b/scripts/packagetesting/testwheel.py index d7f225a..9aad708 100644 --- a/scripts/packagetesting/testwheel.py +++ b/scripts/packagetesting/testwheel.py @@ -269,9 +269,12 @@ if __name__ == "__main__": formatter_class=RawTextHelpFormatter) parser.add_argument('--no-pyinstaller', '-p', action='store_true', help='Skip pyinstaller test') + parser.add_argument("--examples", "-e", action="store", + help="Examples directory") options = parser.parse_args() do_pyinst = not options.no_pyinstaller + root_ex = Path(options.examples) if options.examples else None VERSION = get_pyside_version_from_import() if do_pyinst and sys.version_info[0] < 3: # Note: PyInstaller no longer supports Python 2 @@ -287,7 +290,8 @@ if __name__ == "__main__": else: root = p / 'PySide2' path_version = 2 - root_ex = root / 'examples' + if not root_ex: + root_ex = root / 'examples' break if VERSION[0] == 0: VERSION[0] == path_version -- cgit v1.2.1