14
0
Files
python-eventlet/313-new-thread-attributes.patch
Matej Cepl e08958cdb7 - Temporarily switch to direct download from GitHub, and update
to version 0.37.0+git.1726056572.8637820:
  * Update changelog for version 0.37.0 (#980)
  * Describes Eventlet's Alternatives Into the Migration Guide (#971)
  * fix migration guide url (#978)
  * os.read/write waits until file descriptor is ready. (#975)
  * Upgrade RLocks as last thing we do (#970)
  * warns about using multiple readers (#960)
  * drop header keys with underscores (#959)
  * doc: Repair changelog link (#958)
  * Make the docs more user friendly (#950)
  * Update changelog for version 0.36.1 (#952)
- Add patches making it build with 3.13:
  - 313-new-thread-attributes.patch (gh#eventlet/eventlet#964)
  - no-dynamic-version.patch (we cannot use dynamic version
    number on a git checkout)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-eventlet?expand=0&rev=121
2024-10-23 23:49:51 +00:00

24 lines
913 B
Diff

From d19ad6cc086684ee74db250f5fd35227c98e678a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= <miro@hroncok.cz>
Date: Thu, 6 Jun 2024 10:29:29 +0200
Subject: [PATCH] Add new thread attributes from Python 3.13
Does not fix https://github.com/eventlet/eventlet/issues/964 yet
---
eventlet/green/thread.py | 7 +++++++
1 file changed, 7 insertions(+)
--- a/eventlet/green/thread.py
+++ b/eventlet/green/thread.py
@@ -118,3 +118,10 @@ from eventlet.corolocal import local as
if hasattr(__thread, 'daemon_threads_allowed'):
daemon_threads_allowed = __thread.daemon_threads_allowed
+
+if hasattr(__thread, 'start_joinable_thread'):
+ start_joinable_thread = __thread.start_joinable_thread
+ _shutdown = __thread._shutdown
+ _make_thread_handle = __thread._make_thread_handle
+ _ThreadHandle = __thread._ThreadHandle
+ _get_main_thread_ident = __thread._get_main_thread_ident