Skip to content

Commit

Permalink
Add support for PyQt5 5.11+
Browse files Browse the repository at this point in the history
  • Loading branch information
mottosso committed May 31, 2019
1 parent 2fba75b commit 95d05ab
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions Qt.py
Original file line number Diff line number Diff line change
Expand Up @@ -1486,11 +1486,18 @@ def _pyqt5():

import PyQt5 as module
extras = ["uic"]

try:
import sip
extras.append(sip.__name__)
extras += ["sip"]
except ImportError:
sip = None

# Relevant to PyQt5 5.11 and above
try:
from PyQt5 import sip
extras += ["sip"]
except ImportError:
sip = None

_setup(module, extras)
if hasattr(Qt, "_sip"):
Expand Down

0 comments on commit 95d05ab

Please sign in to comment.