Skip to content

Commit 39ef1f0

Browse files
authored
Fix build with Python 3.13 (#246)
* Fix build with Python 3.13, fixes #245 * Update build.yml to python 3.13
1 parent 8e5581b commit 39ef1f0

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ jobs:
282282
# msvc-toolset: '14.16'
283283

284284
- qt-arch: 'win64_msvc2019_64'
285-
python-version: '3.12'
285+
python-version: '3.13'
286286
python-arch: 'x64'
287287
qt-version: '5.15.*'
288288
pythonqtall-config: 'PythonQtCore PythonQtGui PythonQtMultimedia'

src/PythonQt.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -348,12 +348,6 @@ PythonQt::PythonQt(int flags, const QByteArray& pythonQtModuleName)
348348
Py_Initialize();
349349
}
350350

351-
#ifdef PYTHONQT_FULL_THREAD_SUPPORT
352-
if (!PyEval_ThreadsInitialized()) {
353-
PyEval_InitThreads();
354-
}
355-
#endif
356-
357351
// add our own python object types for qt object slots
358352
if (PyType_Ready(&PythonQtSlotFunction_Type) < 0) {
359353
std::cerr << "could not initialize PythonQtSlotFunction_Type" << ", in " << __FILE__ << ":" << __LINE__ << std::endl;

0 commit comments

Comments
 (0)