diff options
author | Florian Bruhin <git@the-compiler.org> | 2018-07-10 16:07:58 +0200 |
---|---|---|
committer | Florian Bruhin <git@the-compiler.org> | 2018-07-10 16:07:58 +0200 |
commit | 14205ae14f29fd9c1eadeeaf2d2f5bbf9718c573 (patch) | |
tree | a11a0f3a481cb3d8913464f83a242469a030d2be | |
parent | 727b418d8b25d2af832ca43fe243f5f1b24bac01 (diff) | |
download | qutebrowser-14205ae14f29fd9c1eadeeaf2d2f5bbf9718c573.tar.gz qutebrowser-14205ae14f29fd9c1eadeeaf2d2f5bbf9718c573.zip |
Make link_pyqt work with PyQt 5.11
-rw-r--r-- | scripts/link_pyqt.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/scripts/link_pyqt.py b/scripts/link_pyqt.py index e29a69c3a..ae7eaa622 100644 --- a/scripts/link_pyqt.py +++ b/scripts/link_pyqt.py @@ -136,7 +136,15 @@ def link_pyqt(executable, venv_path): executable: The python executable where the source files are present. venv_path: The path to the virtualenv site-packages. """ - sip_file = get_lib_path(executable, 'sip') + try: + get_lib_path(executable, 'PyQt5.sip') + except Error: + # There is no PyQt5.sip, so we need to copy the toplevel sip. + sip_file = get_lib_path(executable, 'sip') + else: + # There is a PyQt5.sip, it'll get copied with the PyQt5 dir. + sip_file = None + sipconfig_file = get_lib_path(executable, 'sipconfig', required=False) pyqt_dir = os.path.dirname(get_lib_path(executable, 'PyQt5.QtCore')) |