Fix the python-olm hacks.

This commit is contained in:
Abel Luck 2023-11-28 12:33:14 +01:00
parent 26ff0d256b
commit bf8110010a
5 changed files with 1756 additions and 631 deletions

View file

@ -11,16 +11,6 @@ RUN apk add --no-cache \
yaml-dev \
python3-dev
RUN set -ex; \
git clone -b "${LIBOLM_VERSION}" https://gitlab.matrix.org/matrix-org/olm.git olm && cd olm; \
pip install setuptools==68.2.2; \
cmake . -Bbuild ; \
cmake --build build ; \
make install ; \
cd python && make olm-python3 ; \
mkdir -p "/python-libs" || true ; \
DESTDIR="/python-libs" make install-python3
RUN mkdir -p /app/ops_bot
COPY requirements.frozen.txt /app/requirements.txt
RUN pip install --prefix="/python-libs" -r /app/requirements.txt