scripts: Check if PyQt wheels directory exists

This commit is contained in:
Florian Bruhin 2023-06-15 15:41:59 +02:00
parent 336da49aa8
commit 665cbfc45a
1 changed files with 3 additions and 0 deletions

View File

@ -513,6 +513,9 @@ def install_pyqt(venv_dir, args):
install_pyqt_link(venv_dir, args.pyqt_version)
elif args.pyqt_type == 'wheels':
wheels_dir = pathlib.Path(args.pyqt_wheels_dir)
if not wheels_dir.is_dir():
raise Error(
f"Wheels directory {wheels_dir} doesn't exist or is not a directory")
install_pyqt_wheels(venv_dir, wheels_dir)
elif args.pyqt_type == 'skip':
pass