From f6499971af01317ab863241c6ae03014d0fe053a Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Wed, 25 Jan 2023 23:38:32 +0900 Subject: superkaramba: fix python version required for PyEval_InitThreads() call. Signed-off-by: Michele Calgaro --- superkaramba/src/karamba_python.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'superkaramba') diff --git a/superkaramba/src/karamba_python.cpp b/superkaramba/src/karamba_python.cpp index 97bb228..65ce4fa 100644 --- a/superkaramba/src/karamba_python.cpp +++ b/superkaramba/src/karamba_python.cpp @@ -444,7 +444,7 @@ void KarambaPython::initPython() PyImport_AppendInittab((char*)"karamba", PyInit_karamba); Py_Initialize(); -#if PY_MAJOR_VERSION >= 3 && PY_MINOR_VERSION <= 6 +#if PY_MAJOR_VERSION == 3 && PY_MINOR_VERSION <= 6 // initialize thread support PyEval_InitThreads(); #endif -- cgit v1.2.1