Skip to content

Commit

Permalink
Install pip-run for all Pythons in one place.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Jun 22, 2024
1 parent 0bf4ce4 commit 2a04a7b
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -50,26 +50,23 @@ RUN ln -s $(which pypy3) /usr/local/bin/pypy
RUN ln -s python3 /usr/local/bin/python
RUN ln -s $(which python${PY_PYTHON}) /usr/local/bin/python3
RUN wget -q https://bootstrap.pypa.io/pip/3.7/get-pip.py -O - | py -3.7
RUN py -3.7 -m pip install pip-run
RUN wget -q https://bootstrap.pypa.io/get-pip.py -O /tmp/get-pip
RUN py -3.8 /tmp/get-pip
RUN py -3.8 -m pip install pip-run
RUN pypy /tmp/get-pip
RUN pypy -m pip install pip-run
RUN py -3.9 /tmp/get-pip
RUN py -3.9 -m pip install pip-run
RUN py -3.10 /tmp/get-pip
RUN py -3.10 -m pip install pip-run
RUN py -3.11 /tmp/get-pip
RUN py -3.11 -m pip install pip-run
RUN py -3.12 /tmp/get-pip
RUN py -3.12 -m pip install pip-run
RUN py -3.13 /tmp/get-pip
RUN py -3.13 -m pip install pip-run

RUN py -m pip install pipx
# Install pip-run
RUN py -3.7 -m pip install --target ~/.local/pip-run pip-run
ENV PATH=/root/.local/pip-run/bin:$PATH
ENV PYTHONPATH=/root/.local/pip-run
RUN sed -i -e 's/#!.*/#!py/' /root/.local/pip-run/bin/pip-run

# Make pipx installs executable
# Install pipx
RUN py -m pip install pipx
ENV PATH /root/.local/bin:$PATH

# Use xonsh as the shell
Expand Down

0 comments on commit 2a04a7b

Please sign in to comment.