Skip to content

Commit 2ab8a83

Browse files
authored
Merge pull request #85 from sbidoul/fix-build-gevent-greenlet-sbi
Fix gevent and greenlet build issue
2 parents c10c908 + d27d7e6 commit 2ab8a83

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Dockerfile

+6-1
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)