Skip to content

Commit d27d7e6

Browse files
committed
Fix gevent and greenlet build issue
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.
1 parent c10c908 commit d27d7e6

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

Dockerfile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,12 @@ ARG odoo_version
111111
# Install Odoo requirements (use ADD for correct layer caching).
112112
# We use requirements from OCB for easier maintenance of older versions.
113113
ADD https://raw.githubusercontent.com/OCA/OCB/$odoo_version/requirements.txt /tmp/ocb-requirements.txt
114-
RUN pip install --no-cache-dir \
114+
# The sed command is to use the latest version of gevent and greenlet. The
115+
# latest version works with all versions of Odoo that we support here, and the
116+
# oldest pinned in Odoo's requirements.txt don't have wheels, and don't build
117+
# anymore with the latest cython.
118+
RUN sed -i -E "s/^(gevent|greenlet)==.*/\1/" /tmp/ocb-requirements.txt \
119+
&& pip install --no-cache-dir \
115120
-r /tmp/ocb-requirements.txt \
116121
packaging
117122

0 commit comments

Comments
 (0)