summarylogtreecommitdiffstats
path: root/sip_path.patch
blob: fa6397eae7f59cc84774459d17901fc8df825caa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff '--color=auto' --unified --recursive --text python_qt_binding-0.3.6/cmake/sip_configure.py python_qt_binding-0.3.6.new/cmake/sip_configure.py
--- python_qt_binding-0.3.6/cmake/sip_configure.py	2019-09-30 23:33:33.000000000 +0200
+++ python_qt_binding-0.3.6.new/cmake/sip_configure.py	2020-02-11 20:37:31.118114272 +0100
@@ -58,10 +58,11 @@
         if os.path.exists(default_sip_dir):
             return default_sip_dir, sip_flags
 
-        # Homebrew installs sip files here by default
-        default_sip_dir = os.path.join(sipconfig._pkg_config['default_sip_dir'], 'Qt5')
+        # arch python3 pkg uses /usr/lib/python3.8/site-packages/PyQt5/bindings directory
+        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
+
         raise FileNotFoundError('The sip directory for PyQt5 could not be located. Please ensure' +
                                 ' that PyQt5 is installed')