Skip to content

Commit

Permalink
Fix gevent and greenlet build issue
Browse files Browse the repository at this point in the history
The gevent and greelet versions pinned in Odoo's requirements.txt
don't build anymore with the latest cython,
so we use the latest versions which have wheels.
  • Loading branch information
sbidoul committed Nov 16, 2024
1 parent c10c908 commit 409af92
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,12 @@ ARG odoo_version
# Install Odoo requirements (use ADD for correct layer caching).
# We use requirements from OCB for easier maintenance of older versions.
ADD https://raw.githubusercontent.com/OCA/OCB/$odoo_version/requirements.txt /tmp/ocb-requirements.txt
RUN pip install --no-cache-dir \
# The sed command is to use the latest version of gevent and greenlet. The
# latest version works with all versions of Odoo that we support here, and the
# oldest pinned in Odoo's requirements.txt don't have wheels, and don't build
# anymore with the latest cython.
RUN sed -i -E "s/^(gevent|greenlet)==.*/\1/" requirements.txt \
&& pip install --no-cache-dir \
-r /tmp/ocb-requirements.txt \
packaging

Expand Down

0 comments on commit 409af92

Please sign in to comment.