diff options
author | Wang Mingyu <wangmy@fujitsu.com> | 2024-11-18 17:29:52 +0800 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2024-11-19 16:59:15 -0800 |
commit | 60d25ced3734364a653c7f39352e4b4bcffc8705 (patch) | |
tree | 8e09a8f473ccdf753fc4f32f9a1f4e5c00d392cb /meta-python/recipes-devtools/python/python3-yappi | |
parent | d5ed13e04e1861ab88b5a559edc415a35827c3c3 (diff) | |
download | meta-openembedded-60d25ced3734364a653c7f39352e4b4bcffc8705.tar.gz |
python3-yappi: upgrade 1.6.0 -> 1.6.10
py3.13.patch
removed since it's included in 1.6.10
Changelog:
=========
- Fix source distribution not released
- Fix error not cleared from an internal PyObject_GetAttrString call
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-python/recipes-devtools/python/python3-yappi')
-rw-r--r-- | meta-python/recipes-devtools/python/python3-yappi/py3.13.patch | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/meta-python/recipes-devtools/python/python3-yappi/py3.13.patch b/meta-python/recipes-devtools/python/python3-yappi/py3.13.patch deleted file mode 100644 index 48d81d56e8..0000000000 --- a/meta-python/recipes-devtools/python/python3-yappi/py3.13.patch +++ /dev/null | |||
@@ -1,43 +0,0 @@ | |||
1 | From defc0291039184b640779e38471ece5e6d3c8cb8 Mon Sep 17 00:00:00 2001 | ||
2 | From: Alfredo Moralejo <amoralej@redhat.com> | ||
3 | Date: Tue, 2 Jul 2024 10:48:24 +0200 | ||
4 | Subject: [PATCH] Add support for python 3.13 | ||
5 | |||
6 | _PyEval_SetProfile() has been moved to internal pycore_ceval.h and it is | ||
7 | not longer exported [1]. PyEval_SetProfileAllThreads was introduced in 3.12 [2]. | ||
8 | |||
9 | [1] https://github.com/python/cpython/commit/c494fb333b57bdf43fc90189fc29a00c293b2987 | ||
10 | [2] https://github.com/python/cpython/commits/76af5c9153394f3d07562427168711a68f54ec66 | ||
11 | |||
12 | Upstream-Status: Backport [https://github.com/sumerc/yappi/commit/defc0291039184b640779e38471ece5e6d3c8cb8] | ||
13 | Signed-off-by: Alexander Kanavin <alex@linutronix.de> | ||
14 | --- | ||
15 | yappi/_yappi.c | 8 ++++++-- | ||
16 | 1 file changed, 6 insertions(+), 2 deletions(-) | ||
17 | |||
18 | diff --git a/yappi/_yappi.c b/yappi/_yappi.c | ||
19 | index 459f4dd..56187c9 100644 | ||
20 | --- a/yappi/_yappi.c | ||
21 | +++ b/yappi/_yappi.c | ||
22 | @@ -1284,7 +1284,9 @@ _resume_greenlet_ctx(_ctx *ctx) | ||
23 | static void | ||
24 | _eval_setprofile(PyThreadState *ts) | ||
25 | { | ||
26 | -#if PY_VERSION_HEX > 0x030b0000 | ||
27 | +#if PY_VERSION_HEX > 0x030c0000 | ||
28 | + PyEval_SetProfileAllThreads(_yapp_callback, NULL); | ||
29 | +#elif PY_VERSION_HEX > 0x030b0000 | ||
30 | _PyEval_SetProfile(ts, _yapp_callback, NULL); | ||
31 | #elif PY_VERSION_HEX < 0x030a00b1 | ||
32 | ts->use_tracing = 1; | ||
33 | @@ -1298,7 +1300,9 @@ _eval_setprofile(PyThreadState *ts) | ||
34 | static void | ||
35 | _eval_unsetprofile(PyThreadState *ts) | ||
36 | { | ||
37 | -#if PY_VERSION_HEX > 0x030b0000 | ||
38 | +#if PY_VERSION_HEX > 0x030c0000 | ||
39 | + PyEval_SetProfileAllThreads(NULL, NULL); | ||
40 | +#elif PY_VERSION_HEX > 0x030b0000 | ||
41 | _PyEval_SetProfile(ts, NULL, NULL); | ||
42 | #elif PY_VERSION_HEX < 0x030a00b1 | ||
43 | ts->use_tracing = 0; | ||