--- a/cmake/Modules/FindPython3Libs.cmake 2014-04-22 23:42:48.000000000 +0800 +++ b/cmake/Modules/FindPython3Libs.cmake 2015-09-21 15:17:27.014598399 +0800 @@ -27,7 +27,7 @@ # Search for the python framework on Apple. # CMAKE_FIND_FRAMEWORKS(Python) -FOREACH(_CURRENT_VERSION 3.4 3.3 3.2 3.1 3.0) +FOREACH(_CURRENT_VERSION 3.7 3.6 3.5 3.4 3.3 3.2 3.1 3.0) IF(_CURRENT_VERSION GREATER 3.1) SET(_32FLAGS "m" "u" "mu" "dm" "du" "dmu" "") ELSE() --- a/libshiboken/sbkenum.cpp 2021-02-09 14:52:17.062065563 -> +++ b/libshiboken/sbkenum.cpp 2021-02-09 14:52:59.965800766 -> @@ -527,9 +527,15 @@ { PyTypeObject* type = reinterpret_cast(new SbkEnumType); ::memset(type, 0, sizeof(SbkEnumType)); + #ifdef IS_PY3K + Py_SET_TYPE(type, &SbkEnumType_Type); + #else Py_TYPE(type) = &SbkEnumType_Type; + #endif type->tp_basicsize = sizeof(SbkEnumObject); + #ifndef IS_PY3K type->tp_print = &SbkEnumObject_print; + #endif type->tp_repr = &SbkEnumObject_repr; type->tp_str = &SbkEnumObject_repr; type->tp_flags = Py_TPFLAGS_DEFAULT|Py_TPFLAGS_CHECKTYPES;