Skip to content

Commit

Permalink
Merge pull request #85 from sbidoul/fix-build-gevent-greenlet-sbi
Browse files Browse the repository at this point in the history
Fix gevent and greenlet build issue
  • Loading branch information
sbidoul authored Nov 16, 2024
2 parents c10c908 + d27d7e6 commit 2ab8a83
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/" /tmp/ocb-requirements.txt \
&& pip install --no-cache-dir \
-r /tmp/ocb-requirements.txt \
packaging

Expand Down

0 comments on commit 2ab8a83

Please sign in to comment.