From 90d48c09b21b3e13a7a85f213ba1c957cf4f9912 Mon Sep 17 00:00:00 2001 From: acxz <17132214+acxz@users.noreply.github.com> Date: Sun, 18 Oct 2020 09:41:19 -0400 Subject: [PATCH] add archlinux sip binding install directory check --- cmake/sip_configure.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cmake/sip_configure.py b/cmake/sip_configure.py index 22c01cc..bfa7224 100644 --- a/cmake/sip_configure.py +++ b/cmake/sip_configure.py @@ -61,6 +61,12 @@ def get_sip_dir_flags(config): # sipconfig.Configuration does not have a pyqt_sip_dir or pyqt_sip_flags AttributeError sip_flags = QtCore.PYQT_CONFIGURATION['sip_flags'] + # Archlinux installs sip files here by default + default_sip_dir = os.path.join(sipconfig._pkg_config['default_mod_dir'], 'PyQt5', 'bindings') + if os.path.exists(default_sip_dir): + return default_sip_dir, sip_flags + + # sip4 installs here by default default_sip_dir = os.path.join(sipconfig._pkg_config['default_sip_dir'], 'PyQt5') if os.path.exists(default_sip_dir): return default_sip_dir, sip_flags