diff options
author | Florian Bruhin <me@the-compiler.org> | 2020-04-17 11:38:40 +0200 |
---|---|---|
committer | Florian Bruhin <me@the-compiler.org> | 2020-04-17 17:05:53 +0200 |
commit | d703c075092f1f4dddcf642efbc22ef8e7548768 (patch) | |
tree | 4b24cda98bc45e3f71fc3a505a5c9da03eaea5b1 | |
parent | 47470e9727ebc7530dd1443554d4ddb2e3b45071 (diff) | |
download | qutebrowser-d703c075092f1f4dddcf642efbc22ef8e7548768.tar.gz qutebrowser-d703c075092f1f4dddcf642efbc22ef8e7548768.zip |
mkvenv: Improve checking for pyqt args
-rw-r--r-- | scripts/mkvenv.py | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/scripts/mkvenv.py b/scripts/mkvenv.py index b159128f9..3d2079435 100644 --- a/scripts/mkvenv.py +++ b/scripts/mkvenv.py @@ -267,9 +267,14 @@ def main() -> None: if args.tox_error: show_tox_error(args.pyqt_type) sys.exit(1) - elif args.pyqt_type == 'link' and args.pyqt_version != 'auto': - utils.print_col('The --pyqt-version option is not available when ' - 'linking a system-wide install.', 'red') + elif (args.pyqt_version != 'auto' and + args.pyqt_type not in ['binary', 'source']): + utils.print_col('The --pyqt-version option is only available when ' + 'installing PyQt from binary or source', 'red') + sys.exit(1) + elif args.pyqt_wheels_dir != 'wheels' and args.pyqt_type != 'wheels': + utils.print_col('The --pyqt-wheels-dir option is only available when ' + 'installing PyQt from wheels', 'red') sys.exit(1) if not args.keep: |