From 499438adf26804dc5760162bba8c89d707fc98a3 Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Wed, 17 Jun 2020 10:13:49 +0200 Subject: Indicate limited API builds in QLibraryInfo::build() Change-Id: I55fe70da8adf6faba0f8099d4d127ae3963fa2c6 Reviewed-by: Christian Tismer --- sources/pyside2/PySide2/glue/qtcore.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'sources/pyside2/PySide2/glue/qtcore.cpp') diff --git a/sources/pyside2/PySide2/glue/qtcore.cpp b/sources/pyside2/PySide2/glue/qtcore.cpp index d76f2980e..a0ca23662 100644 --- a/sources/pyside2/PySide2/glue/qtcore.cpp +++ b/sources/pyside2/PySide2/glue/qtcore.cpp @@ -2012,3 +2012,13 @@ pthread_cleanup_push(qthread_pthread_cleanup, &gil); pthread_cleanup_pop(0); #endif // @snippet qthread_pthread_cleanup_uninstall + +// @snippet qlibraryinfo_build +#if defined(IS_PY3K) && defined(Py_LIMITED_API) +auto suffix = PyUnicode_FromString(" [limited API]"); +auto oldResult = pyResult; +pyResult = PyUnicode_Concat(pyResult, suffix); +Py_DECREF(oldResult); +Py_DECREF(suffix); +#endif +// @snippet qlibraryinfo_build -- cgit v1.2.3