Skip to content

Commit

Permalink
Fix build with Python 3.13 (#246)
Browse files Browse the repository at this point in the history
* Fix build with Python 3.13, fixes #245
* Update build.yml to python 3.13
  • Loading branch information
FabioLolix authored Dec 28, 2024
1 parent 8e5581b commit 39ef1f0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ jobs:
# msvc-toolset: '14.16'

- qt-arch: 'win64_msvc2019_64'
python-version: '3.12'
python-version: '3.13'
python-arch: 'x64'
qt-version: '5.15.*'
pythonqtall-config: 'PythonQtCore PythonQtGui PythonQtMultimedia'
Expand Down
6 changes: 0 additions & 6 deletions src/PythonQt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -348,12 +348,6 @@ PythonQt::PythonQt(int flags, const QByteArray& pythonQtModuleName)
Py_Initialize();
}

#ifdef PYTHONQT_FULL_THREAD_SUPPORT
if (!PyEval_ThreadsInitialized()) {
PyEval_InitThreads();
}
#endif

// add our own python object types for qt object slots
if (PyType_Ready(&PythonQtSlotFunction_Type) < 0) {
std::cerr << "could not initialize PythonQtSlotFunction_Type" << ", in " << __FILE__ << ":" << __LINE__ << std::endl;
Expand Down

0 comments on commit 39ef1f0

Please sign in to comment.