summarylogtreecommitdiffstats
path: root/support-new-python.diff
blob: 9180d02d524c218920a5b27bc66ed9401d50f316 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--- 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 ->
@@ -529,7 +529,9 @@
     ::memset(type, 0, sizeof(SbkEnumType));
     Py_TYPE(type) = &SbkEnumType_Type;
     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;