Skip to content

Commit 9160efc

Browse files
committed
docker: allow pip to install to system
1 parent 0766d67 commit 9160efc

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

Diff for: install/docker/Dockerfile.full

+4-2
Original file line numberDiff line numberDiff line change
@@ -68,13 +68,12 @@ RUN apt-get -y install \
6868
python3-pil \
6969
python3-skimage
7070

71-
# python pip
71+
# allow pip to install to system
7272
RUN rm -f /usr/lib/python**/EXTERNALLY-MANAGED
7373

7474
# pyvips is broken on x86 due to mismatch ffi
7575
# https://stackoverflow.com/questions/62658237/it-seems-that-the-version-of-the-libffi-library-seen-at-runtime-is-different-fro
7676

77-
RUN rm -f /usr/lib/python**/EXTERNALLY-MANAGED
7877
RUN python3 -m pip install --upgrade pip
7978
RUN python3 -m pip install --force-reinstall --no-binary :all: cffi
8079
RUN python3 -m pip install debugpy typing_extensions psutil
@@ -107,6 +106,9 @@ RUN add-apt-repository ppa:deadsnakes/ppa && \
107106
python3.9-dev \
108107
python3.9-distutils
109108

109+
# allow pip to install to system
110+
RUN rm -f /usr/lib/python**/EXTERNALLY-MANAGED
111+
110112
RUN python3.9 -m pip install --upgrade pip
111113
RUN python3.9 -m pip install --force-reinstall --no-binary :all: cffi
112114
RUN python3.9 -m pip install debugpy typing_extensions psutil

Diff for: install/docker/template/Dockerfile.full.footer

+3
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ RUN add-apt-repository ppa:deadsnakes/ppa && \
2323
python3.9-dev \
2424
python3.9-distutils
2525

26+
# allow pip to install to system
27+
RUN rm -f /usr/lib/python**/EXTERNALLY-MANAGED
28+
2629
RUN python3.9 -m pip install --upgrade pip
2730
RUN python3.9 -m pip install --force-reinstall --no-binary :all: cffi
2831
RUN python3.9 -m pip install debugpy typing_extensions psutil

Diff for: install/docker/template/Dockerfile.full.header

+1-2
Original file line numberDiff line numberDiff line change
@@ -65,13 +65,12 @@ RUN apt-get -y install \
6565
python3-pil \
6666
python3-skimage
6767

68-
# python pip
68+
# allow pip to install to system
6969
RUN rm -f /usr/lib/python**/EXTERNALLY-MANAGED
7070

7171
# pyvips is broken on x86 due to mismatch ffi
7272
# https://stackoverflow.com/questions/62658237/it-seems-that-the-version-of-the-libffi-library-seen-at-runtime-is-different-fro
7373

74-
RUN rm -f /usr/lib/python**/EXTERNALLY-MANAGED
7574
RUN python3 -m pip install --upgrade pip
7675
RUN python3 -m pip install --force-reinstall --no-binary :all: cffi
7776
RUN python3 -m pip install debugpy typing_extensions psutil

0 commit comments

Comments
 (0)