Skip to content

Commit

Permalink
fix: install xonsh through Alpine repo
Browse files Browse the repository at this point in the history
  • Loading branch information
JanPokorny committed Oct 23, 2024
1 parent 6d6a8c6 commit 4b64285
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 5 additions & 1 deletion executor/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ RUN apk add --no-cache --repository=https://dl-cdn.alpinelinux.org/alpine/edge/t
py3-xarray \
py3-xarray-pyc \
weasyprint \
xonsh \
xonsh-pyc \
yt-dlp

# Create user manually -- Alpine does not support high UIDs
Expand All @@ -99,10 +101,12 @@ USER executor
RUN fc-cache -fv && python -c "import matplotlib.pyplot"

# Python
ARG PYTHON_VERSION
COPY requirements.txt requirements-skip.txt /
RUN python -m venv --system-site-packages /venv && /venv/bin/pip install --no-cache-dir -r /requirements.txt
COPY sitecustomize.py /venv/lib/python3.12/site-packages
COPY sitecustomize.py /venv/lib/python${PYTHON_VERSION}/site-packages
ENV PATH="/venv/bin:$PATH"
ENV PYTHONPATH="/venv/lib/python${PYTHON_VERSION}/site-packages/"

# Pandoc
COPY pandoc-wrapper /usr/local/bin/pandoc
Expand Down
3 changes: 0 additions & 3 deletions executor/sitecustomize.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
import sys
import warnings

warnings.filterwarnings("ignore", category=DeprecationWarning)

original_import = __import__

Expand Down

0 comments on commit 4b64285

Please sign in to comment.