Changeset View
Changeset View
Standalone View
Standalone View
cmake/modules/FindPyQt5.py
Context not available. | |||||
11 | 11 | | |||
---|---|---|---|---|---|
12 | pyqt_version_tag = "" | 12 | pyqt_version_tag = "" | ||
13 | in_t = False | 13 | in_t = False | ||
14 | for item in PyQt5.Qt.PYQT_CONFIGURATION["sip_flags"].split(' '): | 14 | pyqt_config_list = PyQt5.Qt.PYQT_CONFIGURATION["sip_flags"].split(' ') | ||
15 | for item in pyqt_config_list: | ||||
15 | if item == "-t": | 16 | if item == "-t": | ||
16 | in_t = True | 17 | in_t = True | ||
17 | elif in_t: | 18 | elif in_t: | ||
Context not available. | |||||
21 | in_t = False | 22 | in_t = False | ||
22 | print("pyqt_version_tag:%s" % pyqt_version_tag) | 23 | print("pyqt_version_tag:%s" % pyqt_version_tag) | ||
23 | 24 | | |||
25 | try: | ||||
26 | index_n = pyqt_config_list.index('-n') | ||||
27 | pyqt_sip_name = '-n' + pyqt_config_list[index_n + 1] | ||||
28 | print("pyqt_sip_name:%s" % pyqt_sip_name) | ||||
29 | except ValueError: | ||||
30 | pass | ||||
31 | | ||||
24 | # FIXME This next line is just a little bit too crude. | 32 | # FIXME This next line is just a little bit too crude. | ||
25 | pyqt_sip_dir = os.path.join(sys.prefix, "share", "sip", "PyQt5") | 33 | pyqt_sip_dir = os.path.join(sys.prefix, "share", "sip", "PyQt5") | ||
26 | print("pyqt_sip_dir:%s" % pyqt_sip_dir) | 34 | print("pyqt_sip_dir:%s" % pyqt_sip_dir) | ||
Context not available. |