Skip to content

Commit 221b4f4

Browse files
committed
fix sip4 generator
sip4 does not adhere to PEP-3149 https://peps.python.org/pep-3149/ by default, so we force it to do so in the name of consistency with the sip5 generator.
1 parent a57600f commit 221b4f4

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

cmake/sip_configure.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import re
55
import subprocess
66
import sys
7+
import sysconfig
78

89
import sipconfig
910
from PyQt5 import QtCore
@@ -43,6 +44,7 @@ def __init__(self):
4344
macros['INCDIR_QT'] = qtconfig['QT_INSTALL_HEADERS']
4445
macros['LIBDIR_QT'] = qtconfig['QT_INSTALL_LIBS']
4546
macros['MOC'] = 'moc-qt5' if find_executable('moc-qt5') else 'moc'
47+
macros['EXTENSION_PLUGIN'] = sysconfig.get_config_var('EXT_SUFFIX')[1:] # skip the initial '.' here
4648
self.set_build_macros(macros)
4749

4850

0 commit comments

Comments
 (0)