Fix py_docx import error: use setuptools + PYTHONPATH

This commit is contained in:
2026-06-13 15:45:11 +00:00
parent ff034fa97e
commit 8adb8c8fb0
2 changed files with 9 additions and 4 deletions
+3
View File
@@ -46,6 +46,9 @@ RUN pip install --upgrade pip && pip install .
# Copy source
COPY src/py_docx ./src/py_docx
# Ensure py_docx is importable
ENV PYTHONPATH="/app/src:${PYTHONPATH}"
# Create runtime dirs
RUN mkdir -p /templates /out /tmp/py-docx-mcp