From 355d63fb66113d8671ca7246873b7fe7c47d9178 Mon Sep 17 00:00:00 2001 From: Andreas Perhab Date: Mon, 11 Nov 2024 08:48:25 +0100 Subject: [PATCH] [IMP] 16,17,18: use gevent 22.10.2 pip install gevent==21.8.0 fails with exception when installing with pip in ubuntu/debian. gevent 22.10.2 then also requires greenlet 2.0.2 --- 16.0.Dockerfile | 8 ++------ 17.0.Dockerfile | 7 ++----- 18.0.Dockerfile | 7 ++----- 3 files changed, 6 insertions(+), 16 deletions(-) diff --git a/16.0.Dockerfile b/16.0.Dockerfile index 201b35fe..92a95f9b 100644 --- a/16.0.Dockerfile +++ b/16.0.Dockerfile @@ -142,12 +142,8 @@ RUN build_deps=" \ && apt-get update \ && apt-get install -yqq --no-install-recommends $build_deps \ && curl -o requirements.txt https://raw.githubusercontent.com/$ODOO_SOURCE/$ODOO_VERSION/requirements.txt \ - && \ - if [ "$TARGETARCH" = "arm64" ]; then \ - echo "Upgrading odoo requirements.txt with gevent==21.12.0 and greenlet==1.1.0 (minimum version compatible with arm64)" && \ - sed -i 's/gevent==[0-9\.]*/gevent==21.12.0/' requirements.txt && \ - sed -i 's/greenlet==[0-9\.]*/greenlet==1.1.0/' requirements.txt; \ - fi \ + # disable gevent version recommendation from odoo and use 22.10.2 used in debian bookworm as python3-gevent + && sed -i -E "s/(gevent==)21\.8\.0( ; sys_platform != 'win32' and python_version > '3.9' and python_version <= '3.10')/\122.10.2\2/;s/(greenlet==)1.1.2( ; sys_platform != 'win32' and python_version > '3.9' and python_version <= '3.10')/\12.0.2\2/" requirements.txt \ && pip install -r requirements.txt \ 'websocket-client~=0.56' \ astor \ diff --git a/17.0.Dockerfile b/17.0.Dockerfile index bcb42ab3..88544d63 100644 --- a/17.0.Dockerfile +++ b/17.0.Dockerfile @@ -141,11 +141,8 @@ RUN build_deps=" \ && apt-get update \ && apt-get install -yqq --no-install-recommends $build_deps \ && curl -o requirements.txt https://raw.githubusercontent.com/$ODOO_SOURCE/$ODOO_VERSION/requirements.txt \ - && \ - if [ "$TARGETARCH" = "arm64" ]; then \ - echo "Upgrading odoo requirements.txt with gevent==21.12.0 (minimum version compatible with arm64)" && \ - sed -i 's/gevent==[0-9\.]*/gevent==21.12.0/' requirements.txt; \ - fi \ + # disable gevent version recommendation from odoo and use 22.10.2 used in debian bookworm as python3-gevent + && sed -i -E "s/(gevent==)21\.8\.0( ; sys_platform != 'win32' and python_version == '3.10')/\122.10.2\2/;s/(greenlet==)1.1.2( ; sys_platform != 'win32' and python_version == '3.10')/\12.0.2\2/" requirements.txt \ && pip install -r requirements.txt \ 'websocket-client~=0.56' \ astor \ diff --git a/18.0.Dockerfile b/18.0.Dockerfile index f2e71f23..4b887f4e 100644 --- a/18.0.Dockerfile +++ b/18.0.Dockerfile @@ -141,11 +141,8 @@ RUN build_deps=" \ && apt-get update \ && apt-get install -yqq --no-install-recommends $build_deps \ && curl -o requirements.txt https://raw.githubusercontent.com/$ODOO_SOURCE/$ODOO_VERSION/requirements.txt \ - && \ - if [ "$TARGETARCH" = "arm64" ]; then \ - echo "Upgrading odoo requirements.txt with gevent==21.12.0 (minimum version compatible with arm64)" && \ - sed -i 's/gevent==[0-9\.]*/gevent==21.12.0/' requirements.txt; \ - fi \ + # disable gevent version recommendation from odoo and use 22.10.2 used in debian bookworm as python3-gevent + && sed -i -E "s/(gevent==)21\.8\.0( ; sys_platform != 'win32' and python_version == '3.10')/\122.10.2\2/;s/(greenlet==)1.1.2( ; sys_platform != 'win32' and python_version == '3.10')/\12.0.2\2/" requirements.txt \ && pip install -r requirements.txt \ 'websocket-client~=0.56' \ astor \