Skip to content
Permalink
Browse files
[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 1874274b9f4db4715b51a424e08ee92fd82ecfef
Showing with 0 additions and 5 deletions.
  1. +0 −5 cmake/FindPyQt5.py
@@ -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,

0 comments on commit 1874274

Please sign in to comment.