1
0
mirror of https://git.yoctoproject.org/poky synced 2026-05-07 16:59:22 +00:00

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>
This commit is contained in:
Richard Purdie
2024-05-09 11:48:00 +01:00
parent 8a04f529f2
commit 229951e1da
+3 -1
View File
@@ -25,7 +25,9 @@ ADDR_TYPE_TCP = 1
ADDR_TYPE_WS = 2
WEBSOCKETS_MIN_VERSION = (9, 1)
# Need websockets 10 with python 3.10+
if sys.version_info >= (3, 10, 0):
WEBSOCKETS_MIN_VERSION = (10, 0)
def parse_address(addr):
if addr.startswith(UNIX_PREFIX):