Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[FreeBSD] remove if statement in FindPyQt5.py and fix #41913
  • Loading branch information
lbartoletti authored and nyalldawson committed Jun 5, 2021
1 parent 0be6594 commit 1874274
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions cmake/FindPyQt5.py
Expand Up @@ -41,18 +41,13 @@

cfg = sipconfig.Configuration()
sip_dir = cfg.default_sip_dir
if sys.platform.startswith('freebsd'):
py_version = str(sys.version_info.major) + str(sys.version_info.minor)
sip_dir = sip_dir.replace(py_version, '')
for p in (os.path.join(sip_dir, "PyQt5"),
os.path.join(sip_dir, "PyQt5-3"),
sip_dir,
os.path.join(cfg.default_mod_dir, "PyQt5", "bindings")):
if os.path.exists(os.path.join(p, "QtCore", "QtCoremod.sip")):
sip_dir = p
break
else:
sys.exit(1)
cfg = {
'pyqt_mod_dir': os.path.join(cfg.default_mod_dir, "PyQt5"),
'pyqt_sip_dir': sip_dir,
Expand Down

0 comments on commit 1874274

Please sign in to comment.