If python had a package management, I would hate it.

This commit is contained in:
saces 2026-03-03 20:33:03 +01:00
parent 8a5bebb254
commit 2eec7b4f5e
8 changed files with 67 additions and 92 deletions

View file

@ -25,6 +25,15 @@ FROM docker.io/library/python:${PYTHON_VERSION}-${DEBIAN_VERSION} AS pybuilder
ENV PYTHONUNBUFFERED=1
ENV PIP_ROOT_USER_ACTION=ignore
RUN <<EOF
# install packages
set -e
apt update
apt -y upgrade
apt -y install libolm-dev
rm -rf /var/lib/apt/lists/*
EOF
COPY --from=gobuilder /pygomx-build/libmxclient.so /usr/local/lib/libmxclient.so
COPY --from=gobuilder /pygomx-build/libmxclient.h /usr/local/include/libmxclient.h
@ -36,7 +45,7 @@ RUN <<EOF
# build py module
set -e
cd /pygomx
python3 build_ffi.py
PYGOMX_LINK_OLM=1 python3 build_ffi.py
ls -la *.so
EOF