summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2024-05-09 11:48:00 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-05-16 10:52:43 +0100
commit229951e1dae4968f64ee42af3abb14bccd6372b1 (patch)
tree193c4f612ff5c374f6ed64630440e52bcaac51d0 /bitbake
parent8a04f529f2603acaf4ae72fbeccbd2e4ef862be1 (diff)
downloadpoky-229951e1dae4968f64ee42af3abb14bccd6372b1.tar.gz
bitbake: asyncrpc/client: Fix websockets minimum version for python 3.10
python 3.10 support is only available in websockets 10.0 and later: https://github.com/python-websockets/websockets/commit/08d8011132ba038b3f6c4d591189b57af4c9f147 Update the version for this case. This avoids failures on Ubuntu 22.04. (Bitbake rev: 0e4767c4a880408750e1a6855270c5a4eef8383d) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/asyncrpc/client.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/bitbake/lib/bb/asyncrpc/client.py b/bitbake/lib/bb/asyncrpc/client.py
index 65f3f8964d..b49de99313 100644
--- a/bitbake/lib/bb/asyncrpc/client.py
+++ b/bitbake/lib/bb/asyncrpc/client.py
@@ -25,7 +25,9 @@ ADDR_TYPE_TCP = 1
25ADDR_TYPE_WS = 2 25ADDR_TYPE_WS = 2
26 26
27WEBSOCKETS_MIN_VERSION = (9, 1) 27WEBSOCKETS_MIN_VERSION = (9, 1)
28 28# Need websockets 10 with python 3.10+
29if sys.version_info >= (3, 10, 0):
30 WEBSOCKETS_MIN_VERSION = (10, 0)
29 31
30def parse_address(addr): 32def parse_address(addr):
31 if addr.startswith(UNIX_PREFIX): 33 if addr.startswith(UNIX_PREFIX):