aboutsummaryrefslogtreecommitdiffstats
path: root/testing/wheel_tester.py
diff options
context:
space:
mode:
authorAlex Blasche <alexander.blasche@qt.io>2019-07-18 10:18:43 +0200
committerAlex Blasche <alexander.blasche@qt.io>2019-07-18 10:56:11 +0200
commit2228615ac4f55abf07a1f7e28bbbfee9f3ae036a (patch)
treed12f0c1af2b6cdf486ff389607844a657a1b67c1 /testing/wheel_tester.py
parent97718de50e14f69048993df4e87dda1cadcc599a (diff)
parent4646b8660721e5b8d06b06d714b4562e375f8c34 (diff)
Merge "Merge remote-tracking branch 'origin/5.12' into 5.13"
Diffstat (limited to 'testing/wheel_tester.py')
-rw-r--r--testing/wheel_tester.py16
1 files changed, 12 insertions, 4 deletions
diff --git a/testing/wheel_tester.py b/testing/wheel_tester.py
index 180526b33..535cb3712 100644
--- a/testing/wheel_tester.py
+++ b/testing/wheel_tester.py
@@ -53,6 +53,7 @@ directory (e.g. setup.py bdist_wheel was already executed).
"""
from __future__ import print_function, absolute_import
+from argparse import ArgumentParser, RawTextHelpFormatter
import os, sys
try:
@@ -327,12 +328,13 @@ def try_build_examples():
run_make()
-def run_wheel_tests():
+def run_wheel_tests(install_wheels):
wheels_dir = get_wheels_dir()
py_version = sys.version_info[0]
- log.info("Attempting to install wheels.\n")
- try_install_wheels(wheels_dir, py_version)
+ if install_wheels:
+ log.info("Attempting to install wheels.\n")
+ try_install_wheels(wheels_dir, py_version)
log.info("Attempting to build examples.\n")
try_build_examples()
@@ -341,4 +343,10 @@ def run_wheel_tests():
if __name__ == "__main__":
- run_wheel_tests()
+ parser = ArgumentParser(description="wheel_tester",
+ formatter_class=RawTextHelpFormatter)
+ parser.add_argument('--no-install-wheels', '-n', action='store_true',
+ help='Do not install wheels'
+ ' (for developer builds with virtualenv)')
+ options = parser.parse_args()
+ run_wheel_tests(not options.no_install_wheels)