Skip to content

Commit 14bb078

Browse files
Updated the default ABIs used
The default ABI used now only specifies the major version. It is left to SIP to provide an appropriate minor version. Resolves #25
1 parent 1db5702 commit 14bb078

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

pyqtbuild/builder.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -130,15 +130,13 @@ def apply_user_defaults(self, tool):
130130
if not project.sip_module:
131131
project.sip_module = 'PyQt{}.sip'.format(self.qt_version >> 16)
132132

133-
# Set the default ABI version of the sip module.
133+
# Set the default ABI major version of the sip module. SIP will
134+
# determine the most appropriate minor version.
134135
if not project.abi_version:
135-
# These are the minimum recommended versions. They normally
136-
# (but do not have to) correspond to the most up to date code
137-
# that the current version of SIP will generate.
138136
if project.sip_module == 'PyQt5.sip':
139-
project.abi_version = '12.16'
137+
project.abi_version = '12'
140138
elif project.sip_module == 'PyQt6.sip':
141-
project.abi_version = '13.9'
139+
project.abi_version = '13'
142140

143141
super().apply_user_defaults(tool)
144142

0 commit comments

Comments
 (0)