summaryrefslogtreecommitdiffstats
path: root/meta-python
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2024-10-28 19:37:45 -0700
committerKhem Raj <raj.khem@gmail.com>2024-10-28 21:25:22 -0700
commite17b039f92e6819ea98abbaeada413665697c6a9 (patch)
tree74c213585d3e6f4aa1ccc965e2baeda67185fb73 /meta-python
parent36a2ea12eb299ac5fe330b6017620b5911c03146 (diff)
downloadmeta-openembedded-e17b039f92e6819ea98abbaeada413665697c6a9.tar.gz
python3-eventlet: Add new thread attributes from Python 3.13
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-python')
-rw-r--r--meta-python/recipes-devtools/python/python3-eventlet/d19ad6cc086684ee74db250f5fd35227c98e678a.patch27
-rw-r--r--meta-python/recipes-devtools/python/python3-eventlet_0.37.0.bb1
2 files changed, 28 insertions, 0 deletions
diff --git a/meta-python/recipes-devtools/python/python3-eventlet/d19ad6cc086684ee74db250f5fd35227c98e678a.patch b/meta-python/recipes-devtools/python/python3-eventlet/d19ad6cc086684ee74db250f5fd35227c98e678a.patch
new file mode 100644
index 0000000000..f8a268309a
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-eventlet/d19ad6cc086684ee74db250f5fd35227c98e678a.patch
@@ -0,0 +1,27 @@
1From d19ad6cc086684ee74db250f5fd35227c98e678a Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= <miro@hroncok.cz>
3Date: Thu, 6 Jun 2024 10:29:29 +0200
4Subject: [PATCH] Add new thread attributes from Python 3.13
5
6Does not fix https://github.com/eventlet/eventlet/issues/964 yet
7Upstream-Status: Backport [https://github.com/eventlet/eventlet/pull/965]
8Signed-off-by: Khem Raj <raj.khem@gmail.com>
9---
10 eventlet/green/thread.py | 7 +++++++
11 1 file changed, 7 insertions(+)
12
13diff --git a/eventlet/green/thread.py b/eventlet/green/thread.py
14index 053a1c3c6..384b3c290 100644
15--- a/eventlet/green/thread.py
16+++ b/eventlet/green/thread.py
17@@ -118,3 +118,10 @@ def stack_size(size=None):
18
19 if hasattr(__thread, 'daemon_threads_allowed'):
20 daemon_threads_allowed = __thread.daemon_threads_allowed
21+
22+if hasattr(__thread, 'start_joinable_thread'):
23+ start_joinable_thread = __thread.start_joinable_thread
24+ _shutdown = __thread._shutdown
25+ _make_thread_handle = __thread._make_thread_handle
26+ _ThreadHandle = __thread._ThreadHandle
27+ _get_main_thread_ident = __thread._get_main_thread_ident
diff --git a/meta-python/recipes-devtools/python/python3-eventlet_0.37.0.bb b/meta-python/recipes-devtools/python/python3-eventlet_0.37.0.bb
index 84de0d8e44..df23162e05 100644
--- a/meta-python/recipes-devtools/python/python3-eventlet_0.37.0.bb
+++ b/meta-python/recipes-devtools/python/python3-eventlet_0.37.0.bb
@@ -4,6 +4,7 @@ SECTION = "devel/python"
4LICENSE = "MIT" 4LICENSE = "MIT"
5LIC_FILES_CHKSUM = "file://LICENSE;md5=56472ad6de4caf50e05332a34b66e778" 5LIC_FILES_CHKSUM = "file://LICENSE;md5=56472ad6de4caf50e05332a34b66e778"
6 6
7SRC_URI += "file://d19ad6cc086684ee74db250f5fd35227c98e678a.patch"
7SRC_URI[sha256sum] = "fa49bf5a549cdbaa06919679979ea022ac8f8f3cf0499f26849a1cd8e64c30b1" 8SRC_URI[sha256sum] = "fa49bf5a549cdbaa06919679979ea022ac8f8f3cf0499f26849a1cd8e64c30b1"
8 9
9inherit pypi python_hatchling 10inherit pypi python_hatchling