Skip to content

Commit 2d1b765

Browse files
committed
Create symlinks in the Python build step
There is no major benefit in splitting these two actions to two steps.
1 parent 031df18 commit 2d1b765

File tree

3 files changed

+6
-9
lines changed

3 files changed

+6
-9
lines changed

python/3.12/Dockerfile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,9 @@ RUN \
102102
\( \
103103
-type d -a \( -name test -o -name tests \) \
104104
\) -exec rm -rf '{}' + \
105-
&& rm -rf /usr/src/python
106-
105+
&& rm -rf /usr/src/python \
107106
# make some useful symlinks that are expected to exist
108-
RUN cd /usr/local/bin \
107+
&& cd /usr/local/bin \
109108
&& ln -s idle3 idle \
110109
&& ln -s pydoc3 pydoc \
111110
&& ln -s python3 python \

python/3.13/Dockerfile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,9 @@ RUN \
102102
\( \
103103
-type d -a \( -name test -o -name tests \) \
104104
\) -exec rm -rf '{}' + \
105-
&& rm -rf /usr/src/python
106-
105+
&& rm -rf /usr/src/python \
107106
# make some useful symlinks that are expected to exist
108-
RUN cd /usr/local/bin \
107+
&& cd /usr/local/bin \
109108
&& ln -s idle3 idle \
110109
&& ln -s pydoc3 pydoc \
111110
&& ln -s python3 python \

python/3.14/Dockerfile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,9 @@ RUN \
103103
\( \
104104
-type d -a \( -name test -o -name tests \) \
105105
\) -exec rm -rf '{}' + \
106-
&& rm -rf /usr/src/python
107-
106+
&& rm -rf /usr/src/python \
108107
# make some useful symlinks that are expected to exist
109-
RUN cd /usr/local/bin \
108+
&& cd /usr/local/bin \
110109
&& ln -s idle3 idle \
111110
&& ln -s pydoc3 pydoc \
112111
&& ln -s python3 python \

0 commit comments

Comments
 (0)