File tree 29 files changed +206
-188
lines changed 29 files changed +206
-188
lines changed Original file line number Diff line number Diff line change @@ -116,6 +116,14 @@ RUN set -ex \
116
116
test_unicode \
117
117
' \
118
118
&& make install \
119
+ && rm -rf /usr/src/python \
120
+ \
121
+ && find /usr/local -depth \
122
+ \( \
123
+ \( -type d -a \( -name test -o -name tests -o -name idle_test \) \) \
124
+ -o \( -type f -a \( -name '*.pyc' -o -name '*.pyo' -o -name '*.a' \) \) \
125
+ -o \( -type f -a -name 'wininst-*.exe' \) \
126
+ \) -exec rm -rf '{}' + \
119
127
\
120
128
&& find /usr/local -type f -executable -not \( -name '*tkinter*' \) -exec scanelf --needed --nobanner --format '%n#p' '{}' ';' \
121
129
| tr ',' '\n ' \
@@ -124,14 +132,6 @@ RUN set -ex \
124
132
| xargs -rt apk add --no-cache --virtual .python-rundeps \
125
133
&& apk del --no-network .build-deps \
126
134
\
127
- && find /usr/local -depth \
128
- \( \
129
- \( -type d -a \( -name test -o -name tests -o -name idle_test \) \) \
130
- -o \
131
- \( -type f -a \( -name '*.pyc' -o -name '*.pyo' \) \) \
132
- \) -exec rm -rf '{}' + \
133
- && rm -rf /usr/src/python \
134
- \
135
135
&& python3 --version
136
136
137
137
# make some useful symlinks that are expected to exist
Original file line number Diff line number Diff line change @@ -116,6 +116,14 @@ RUN set -ex \
116
116
test_unicode \
117
117
' \
118
118
&& make install \
119
+ && rm -rf /usr/src/python \
120
+ \
121
+ && find /usr/local -depth \
122
+ \( \
123
+ \( -type d -a \( -name test -o -name tests -o -name idle_test \) \) \
124
+ -o \( -type f -a \( -name '*.pyc' -o -name '*.pyo' -o -name '*.a' \) \) \
125
+ -o \( -type f -a -name 'wininst-*.exe' \) \
126
+ \) -exec rm -rf '{}' + \
119
127
\
120
128
&& find /usr/local -type f -executable -not \( -name '*tkinter*' \) -exec scanelf --needed --nobanner --format '%n#p' '{}' ';' \
121
129
| tr ',' '\n ' \
@@ -124,14 +132,6 @@ RUN set -ex \
124
132
| xargs -rt apk add --no-cache --virtual .python-rundeps \
125
133
&& apk del --no-network .build-deps \
126
134
\
127
- && find /usr/local -depth \
128
- \( \
129
- \( -type d -a \( -name test -o -name tests -o -name idle_test \) \) \
130
- -o \
131
- \( -type f -a \( -name '*.pyc' -o -name '*.pyo' \) \) \
132
- \) -exec rm -rf '{}' + \
133
- && rm -rf /usr/src/python \
134
- \
135
135
&& python3 --version
136
136
137
137
# make some useful symlinks that are expected to exist
Original file line number Diff line number Diff line change @@ -84,15 +84,16 @@ RUN set -ex \
84
84
test_unicode \
85
85
' \
86
86
&& make install \
87
- && ldconfig \
87
+ && rm -rf /usr/src/python \
88
88
\
89
89
&& find /usr/local -depth \
90
90
\( \
91
91
\( -type d -a \( -name test -o -name tests -o -name idle_test \) \) \
92
- -o \
93
- \( -type f -a \( -name '*.pyc' -o -name '*.pyo' \) \) \
92
+ -o \( -type f -a \( -name '*.pyc' -o -name '*.pyo' -o -name '*.a' \) \) \
93
+ -o \( -type f -a -name 'wininst-*.exe' \) \
94
94
\) -exec rm -rf '{}' + \
95
- && rm -rf /usr/src/python \
95
+ \
96
+ && ldconfig \
96
97
\
97
98
&& python3 --version
98
99
Original file line number Diff line number Diff line change @@ -108,6 +108,15 @@ RUN set -ex \
108
108
test_unicode \
109
109
' \
110
110
&& make install \
111
+ && rm -rf /usr/src/python \
112
+ \
113
+ && find /usr/local -depth \
114
+ \( \
115
+ \( -type d -a \( -name test -o -name tests -o -name idle_test \) \) \
116
+ -o \( -type f -a \( -name '*.pyc' -o -name '*.pyo' -o -name '*.a' \) \) \
117
+ -o \( -type f -a -name 'wininst-*.exe' \) \
118
+ \) -exec rm -rf '{}' + \
119
+ \
111
120
&& ldconfig \
112
121
\
113
122
&& apt-mark auto '.*' > /dev/null \
@@ -122,14 +131,6 @@ RUN set -ex \
122
131
&& apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false \
123
132
&& rm -rf /var/lib/apt/lists/* \
124
133
\
125
- && find /usr/local -depth \
126
- \( \
127
- \( -type d -a \( -name test -o -name tests -o -name idle_test \) \) \
128
- -o \
129
- \( -type f -a \( -name '*.pyc' -o -name '*.pyo' \) \) \
130
- \) -exec rm -rf '{}' + \
131
- && rm -rf /usr/src/python \
132
- \
133
134
&& python3 --version
134
135
135
136
# make some useful symlinks that are expected to exist
Original file line number Diff line number Diff line change @@ -84,15 +84,16 @@ RUN set -ex \
84
84
test_unicode \
85
85
' \
86
86
&& make install \
87
- && ldconfig \
87
+ && rm -rf /usr/src/python \
88
88
\
89
89
&& find /usr/local -depth \
90
90
\( \
91
91
\( -type d -a \( -name test -o -name tests -o -name idle_test \) \) \
92
- -o \
93
- \( -type f -a \( -name '*.pyc' -o -name '*.pyo' \) \) \
92
+ -o \( -type f -a \( -name '*.pyc' -o -name '*.pyo' -o -name '*.a' \) \) \
93
+ -o \( -type f -a -name 'wininst-*.exe' \) \
94
94
\) -exec rm -rf '{}' + \
95
- && rm -rf /usr/src/python \
95
+ \
96
+ && ldconfig \
96
97
\
97
98
&& python3 --version
98
99
Original file line number Diff line number Diff line change @@ -108,6 +108,15 @@ RUN set -ex \
108
108
test_unicode \
109
109
' \
110
110
&& make install \
111
+ && rm -rf /usr/src/python \
112
+ \
113
+ && find /usr/local -depth \
114
+ \( \
115
+ \( -type d -a \( -name test -o -name tests -o -name idle_test \) \) \
116
+ -o \( -type f -a \( -name '*.pyc' -o -name '*.pyo' -o -name '*.a' \) \) \
117
+ -o \( -type f -a -name 'wininst-*.exe' \) \
118
+ \) -exec rm -rf '{}' + \
119
+ \
111
120
&& ldconfig \
112
121
\
113
122
&& apt-mark auto '.*' > /dev/null \
@@ -122,14 +131,6 @@ RUN set -ex \
122
131
&& apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false \
123
132
&& rm -rf /var/lib/apt/lists/* \
124
133
\
125
- && find /usr/local -depth \
126
- \( \
127
- \( -type d -a \( -name test -o -name tests -o -name idle_test \) \) \
128
- -o \
129
- \( -type f -a \( -name '*.pyc' -o -name '*.pyo' \) \) \
130
- \) -exec rm -rf '{}' + \
131
- && rm -rf /usr/src/python \
132
- \
133
134
&& python3 --version
134
135
135
136
# make some useful symlinks that are expected to exist
Original file line number Diff line number Diff line change @@ -118,6 +118,14 @@ RUN set -ex \
118
118
test_unicode \
119
119
' \
120
120
&& make install \
121
+ && rm -rf /usr/src/python \
122
+ \
123
+ && find /usr/local -depth \
124
+ \( \
125
+ \( -type d -a \( -name test -o -name tests -o -name idle_test \) \) \
126
+ -o \( -type f -a \( -name '*.pyc' -o -name '*.pyo' -o -name '*.a' \) \) \
127
+ -o \( -type f -a -name 'wininst-*.exe' \) \
128
+ \) -exec rm -rf '{}' + \
121
129
\
122
130
&& find /usr/local -type f -executable -not \( -name '*tkinter*' \) -exec scanelf --needed --nobanner --format '%n#p' '{}' ';' \
123
131
| tr ',' '\n ' \
@@ -126,14 +134,6 @@ RUN set -ex \
126
134
| xargs -rt apk add --no-cache --virtual .python-rundeps \
127
135
&& apk del --no-network .build-deps \
128
136
\
129
- && find /usr/local -depth \
130
- \( \
131
- \( -type d -a \( -name test -o -name tests -o -name idle_test \) \) \
132
- -o \
133
- \( -type f -a \( -name '*.pyc' -o -name '*.pyo' \) \) \
134
- \) -exec rm -rf '{}' + \
135
- && rm -rf /usr/src/python \
136
- \
137
137
&& python3 --version
138
138
139
139
# make some useful symlinks that are expected to exist
Original file line number Diff line number Diff line change @@ -118,6 +118,14 @@ RUN set -ex \
118
118
test_unicode \
119
119
' \
120
120
&& make install \
121
+ && rm -rf /usr/src/python \
122
+ \
123
+ && find /usr/local -depth \
124
+ \( \
125
+ \( -type d -a \( -name test -o -name tests -o -name idle_test \) \) \
126
+ -o \( -type f -a \( -name '*.pyc' -o -name '*.pyo' -o -name '*.a' \) \) \
127
+ -o \( -type f -a -name 'wininst-*.exe' \) \
128
+ \) -exec rm -rf '{}' + \
121
129
\
122
130
&& find /usr/local -type f -executable -not \( -name '*tkinter*' \) -exec scanelf --needed --nobanner --format '%n#p' '{}' ';' \
123
131
| tr ',' '\n ' \
@@ -126,14 +134,6 @@ RUN set -ex \
126
134
| xargs -rt apk add --no-cache --virtual .python-rundeps \
127
135
&& apk del --no-network .build-deps \
128
136
\
129
- && find /usr/local -depth \
130
- \( \
131
- \( -type d -a \( -name test -o -name tests -o -name idle_test \) \) \
132
- -o \
133
- \( -type f -a \( -name '*.pyc' -o -name '*.pyo' \) \) \
134
- \) -exec rm -rf '{}' + \
135
- && rm -rf /usr/src/python \
136
- \
137
137
&& python3 --version
138
138
139
139
# make some useful symlinks that are expected to exist
Original file line number Diff line number Diff line change @@ -84,15 +84,16 @@ RUN set -ex \
84
84
test_unicode \
85
85
' \
86
86
&& make install \
87
- && ldconfig \
87
+ && rm -rf /usr/src/python \
88
88
\
89
89
&& find /usr/local -depth \
90
90
\( \
91
91
\( -type d -a \( -name test -o -name tests -o -name idle_test \) \) \
92
- -o \
93
- \( -type f -a \( -name '*.pyc' -o -name '*.pyo' \) \) \
92
+ -o \( -type f -a \( -name '*.pyc' -o -name '*.pyo' -o -name '*.a' \) \) \
93
+ -o \( -type f -a -name 'wininst-*.exe' \) \
94
94
\) -exec rm -rf '{}' + \
95
- && rm -rf /usr/src/python \
95
+ \
96
+ && ldconfig \
96
97
\
97
98
&& python3 --version
98
99
Original file line number Diff line number Diff line change @@ -108,6 +108,15 @@ RUN set -ex \
108
108
test_unicode \
109
109
' \
110
110
&& make install \
111
+ && rm -rf /usr/src/python \
112
+ \
113
+ && find /usr/local -depth \
114
+ \( \
115
+ \( -type d -a \( -name test -o -name tests -o -name idle_test \) \) \
116
+ -o \( -type f -a \( -name '*.pyc' -o -name '*.pyo' -o -name '*.a' \) \) \
117
+ -o \( -type f -a -name 'wininst-*.exe' \) \
118
+ \) -exec rm -rf '{}' + \
119
+ \
111
120
&& ldconfig \
112
121
\
113
122
&& apt-mark auto '.*' > /dev/null \
@@ -122,14 +131,6 @@ RUN set -ex \
122
131
&& apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false \
123
132
&& rm -rf /var/lib/apt/lists/* \
124
133
\
125
- && find /usr/local -depth \
126
- \( \
127
- \( -type d -a \( -name test -o -name tests -o -name idle_test \) \) \
128
- -o \
129
- \( -type f -a \( -name '*.pyc' -o -name '*.pyo' \) \) \
130
- \) -exec rm -rf '{}' + \
131
- && rm -rf /usr/src/python \
132
- \
133
134
&& python3 --version
134
135
135
136
# make some useful symlinks that are expected to exist
Original file line number Diff line number Diff line change @@ -84,15 +84,16 @@ RUN set -ex \
84
84
test_unicode \
85
85
' \
86
86
&& make install \
87
- && ldconfig \
87
+ && rm -rf /usr/src/python \
88
88
\
89
89
&& find /usr/local -depth \
90
90
\( \
91
91
\( -type d -a \( -name test -o -name tests -o -name idle_test \) \) \
92
- -o \
93
- \( -type f -a \( -name '*.pyc' -o -name '*.pyo' \) \) \
92
+ -o \( -type f -a \( -name '*.pyc' -o -name '*.pyo' -o -name '*.a' \) \) \
93
+ -o \( -type f -a -name 'wininst-*.exe' \) \
94
94
\) -exec rm -rf '{}' + \
95
- && rm -rf /usr/src/python \
95
+ \
96
+ && ldconfig \
96
97
\
97
98
&& python3 --version
98
99
Original file line number Diff line number Diff line change @@ -108,6 +108,15 @@ RUN set -ex \
108
108
test_unicode \
109
109
' \
110
110
&& make install \
111
+ && rm -rf /usr/src/python \
112
+ \
113
+ && find /usr/local -depth \
114
+ \( \
115
+ \( -type d -a \( -name test -o -name tests -o -name idle_test \) \) \
116
+ -o \( -type f -a \( -name '*.pyc' -o -name '*.pyo' -o -name '*.a' \) \) \
117
+ -o \( -type f -a -name 'wininst-*.exe' \) \
118
+ \) -exec rm -rf '{}' + \
119
+ \
111
120
&& ldconfig \
112
121
\
113
122
&& apt-mark auto '.*' > /dev/null \
@@ -122,14 +131,6 @@ RUN set -ex \
122
131
&& apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false \
123
132
&& rm -rf /var/lib/apt/lists/* \
124
133
\
125
- && find /usr/local -depth \
126
- \( \
127
- \( -type d -a \( -name test -o -name tests -o -name idle_test \) \) \
128
- -o \
129
- \( -type f -a \( -name '*.pyc' -o -name '*.pyo' \) \) \
130
- \) -exec rm -rf '{}' + \
131
- && rm -rf /usr/src/python \
132
- \
133
134
&& python3 --version
134
135
135
136
# make some useful symlinks that are expected to exist
Original file line number Diff line number Diff line change @@ -119,6 +119,14 @@ RUN set -ex \
119
119
test_unicode \
120
120
' \
121
121
&& make install \
122
+ && rm -rf /usr/src/python \
123
+ \
124
+ && find /usr/local -depth \
125
+ \( \
126
+ \( -type d -a \( -name test -o -name tests -o -name idle_test \) \) \
127
+ -o \( -type f -a \( -name '*.pyc' -o -name '*.pyo' -o -name '*.a' \) \) \
128
+ -o \( -type f -a -name 'wininst-*.exe' \) \
129
+ \) -exec rm -rf '{}' + \
122
130
\
123
131
&& find /usr/local -type f -executable -not \( -name '*tkinter*' \) -exec scanelf --needed --nobanner --format '%n#p' '{}' ';' \
124
132
| tr ',' '\n ' \
@@ -127,14 +135,6 @@ RUN set -ex \
127
135
| xargs -rt apk add --no-cache --virtual .python-rundeps \
128
136
&& apk del --no-network .build-deps \
129
137
\
130
- && find /usr/local -depth \
131
- \( \
132
- \( -type d -a \( -name test -o -name tests -o -name idle_test \) \) \
133
- -o \
134
- \( -type f -a \( -name '*.pyc' -o -name '*.pyo' \) \) \
135
- \) -exec rm -rf '{}' + \
136
- && rm -rf /usr/src/python \
137
- \
138
138
&& python3 --version
139
139
140
140
# make some useful symlinks that are expected to exist
Original file line number Diff line number Diff line change @@ -119,6 +119,14 @@ RUN set -ex \
119
119
test_unicode \
120
120
' \
121
121
&& make install \
122
+ && rm -rf /usr/src/python \
123
+ \
124
+ && find /usr/local -depth \
125
+ \( \
126
+ \( -type d -a \( -name test -o -name tests -o -name idle_test \) \) \
127
+ -o \( -type f -a \( -name '*.pyc' -o -name '*.pyo' -o -name '*.a' \) \) \
128
+ -o \( -type f -a -name 'wininst-*.exe' \) \
129
+ \) -exec rm -rf '{}' + \
122
130
\
123
131
&& find /usr/local -type f -executable -not \( -name '*tkinter*' \) -exec scanelf --needed --nobanner --format '%n#p' '{}' ';' \
124
132
| tr ',' '\n ' \
@@ -127,14 +135,6 @@ RUN set -ex \
127
135
| xargs -rt apk add --no-cache --virtual .python-rundeps \
128
136
&& apk del --no-network .build-deps \
129
137
\
130
- && find /usr/local -depth \
131
- \( \
132
- \( -type d -a \( -name test -o -name tests -o -name idle_test \) \) \
133
- -o \
134
- \( -type f -a \( -name '*.pyc' -o -name '*.pyo' \) \) \
135
- \) -exec rm -rf '{}' + \
136
- && rm -rf /usr/src/python \
137
- \
138
138
&& python3 --version
139
139
140
140
# make some useful symlinks that are expected to exist
You can’t perform that action at this time.
0 commit comments