Skip to content

Commit 34e7176

Browse files
Remove Python source code files (#104)
1 parent 40d54f7 commit 34e7176

File tree

8 files changed

+56
-56
lines changed

8 files changed

+56
-56
lines changed

Dockerfile.j2

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ RUN cd /tmp && \
155155
sed -i 's/_PYTHON_HOST_PLATFORM=linux-arm/_PYTHON_HOST_PLATFORM=linux-armv7l/' Makefile && \
156156
{% endif -%}
157157
make -j4 && make -j4 install && \
158-
rm -rf Python-$VERS.tgz Python-$VERS $PREFIX/share && \
158+
cd /tmp && rm -rf Python-$VERS.tgz Python-$VERS $PREFIX/share && \
159159
# we don't need libpython*.a, and they're many megabytes
160160
find $PREFIX -name '*.a' -print0 | xargs -0 rm -f && \
161161
# We do not need the Python test suites
@@ -172,7 +172,7 @@ RUN cd /tmp && \
172172
sed -i 's/_PYTHON_HOST_PLATFORM=linux-arm/_PYTHON_HOST_PLATFORM=linux-armv7l/' Makefile && \
173173
{% endif -%}
174174
make -j4 && make -j4 install && \
175-
rm -rf Python-$VERS.tgz Python-$VERS $PREFIX/share && \
175+
cd /tmp && rm -rf Python-$VERS.tgz Python-$VERS $PREFIX/share && \
176176
# we don't need libpython*.a, and they're many megabytes
177177
find $PREFIX -name '*.a' -print0 | xargs -0 rm -f && \
178178
# We do not need the Python test suites
@@ -189,7 +189,7 @@ RUN cd /tmp && \
189189
sed -i 's/_PYTHON_HOST_PLATFORM=linux-arm/_PYTHON_HOST_PLATFORM=linux-armv7l/' Makefile && \
190190
{% endif -%}
191191
make -j4 && make -j4 install && \
192-
rm -rf Python-$VERS.tgz Python-$VERS $PREFIX/share && \
192+
cd /tmp && rm -rf Python-$VERS.tgz Python-$VERS $PREFIX/share && \
193193
# we don't need libpython*.a, and they're many megabytes
194194
find $PREFIX -name '*.a' -print0 | xargs -0 rm -f && \
195195
# We do not need the Python test suites
@@ -206,7 +206,7 @@ RUN cd /tmp && \
206206
sed -i 's/_PYTHON_HOST_PLATFORM=linux-arm/_PYTHON_HOST_PLATFORM=linux-armv7l/' Makefile && \
207207
{% endif -%}
208208
make -j4 && make -j4 install && \
209-
rm -rf Python-$VERS.tgz Python-$VERS $PREFIX/share && \
209+
cd /tmp && rm -rf Python-$VERS.tgz Python-$VERS $PREFIX/share && \
210210
# we don't need libpython*.a, and they're many megabytes
211211
find $PREFIX -name '*.a' -print0 | xargs -0 rm -f && \
212212
# We do not need the Python test suites
@@ -223,7 +223,7 @@ RUN cd /tmp && \
223223
sed -i 's/_PYTHON_HOST_PLATFORM=linux-arm/_PYTHON_HOST_PLATFORM=linux-armv7l/' Makefile && \
224224
{% endif -%}
225225
make -j4 && make -j4 install && \
226-
rm -rf Python-$VERS.tgz Python-$VERS $PREFIX/share && \
226+
cd /tmp && rm -rf Python-$VERS.tgz Python-$VERS $PREFIX/share && \
227227
# we don't need libpython*.a, and they're many megabytes
228228
find $PREFIX -name '*.a' -print0 | xargs -0 rm -f && \
229229
# We do not need the Python test suites
@@ -240,7 +240,7 @@ RUN cd /tmp && \
240240
sed -i 's/_PYTHON_HOST_PLATFORM=linux-arm/_PYTHON_HOST_PLATFORM=linux-armv7l/' Makefile && \
241241
{% endif -%}
242242
make -j4 && make -j4 install && \
243-
rm -rf Python-$VERS.tgz Python-$VERS $PREFIX/share && \
243+
cd /tmp && rm -rf Python-$VERS.tgz Python-$VERS $PREFIX/share && \
244244
# we don't need libpython*.a, and they're many megabytes
245245
find $PREFIX -name '*.a' -print0 | xargs -0 rm -f && \
246246
# We do not need the Python test suites
@@ -257,7 +257,7 @@ RUN cd /tmp && \
257257
sed -i 's/_PYTHON_HOST_PLATFORM=linux-arm/_PYTHON_HOST_PLATFORM=linux-armv7l/' Makefile && \
258258
{% endif -%}
259259
make -j4 && make -j4 install && \
260-
rm -rf Python-$VERS.tgz Python-$VERS $PREFIX/share && \
260+
cd /tmp && rm -rf Python-$VERS.tgz Python-$VERS $PREFIX/share && \
261261
# we don't need libpython*.a, and they're many megabytes
262262
find $PREFIX -name '*.a' -print0 | xargs -0 rm -f && \
263263
# We do not need the Python test suites

manylinux2014/armv7l/Dockerfile

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ RUN cd /tmp && \
133133
./configure CC=$TARGET_CC AR=$TARGET_AR READELF=$TARGET_READELF --host=armv7l-unknown-linux-gnueabihf --target=armv7l-unknown-linux-gnueabihf --prefix=$PREFIX --disable-shared --with-ensurepip=no --build=$(uname -m)-linux-gnu --disable-ipv6 ac_cv_have_long_long_format=yes ac_cv_file__dev_ptmx=no ac_cv_file__dev_ptc=no && \
134134
sed -i 's/_PYTHON_HOST_PLATFORM=linux-arm/_PYTHON_HOST_PLATFORM=linux-armv7l/' Makefile && \
135135
make -j4 && make -j4 install && \
136-
rm -rf Python-$VERS.tgz Python-$VERS $PREFIX/share && \
136+
cd /tmp && rm -rf Python-$VERS.tgz Python-$VERS $PREFIX/share && \
137137
# we don't need libpython*.a, and they're many megabytes
138138
find $PREFIX -name '*.a' -print0 | xargs -0 rm -f && \
139139
# We do not need the Python test suites
@@ -148,7 +148,7 @@ RUN cd /tmp && \
148148
./configure CC=$TARGET_CC AR=$TARGET_AR READELF=$TARGET_READELF --host=armv7l-unknown-linux-gnueabihf --target=armv7l-unknown-linux-gnueabihf --prefix=$PREFIX --disable-shared --with-ensurepip=no --build=$(uname -m)-linux-gnu --disable-ipv6 ac_cv_have_long_long_format=yes ac_cv_file__dev_ptmx=no ac_cv_file__dev_ptc=no && \
149149
sed -i 's/_PYTHON_HOST_PLATFORM=linux-arm/_PYTHON_HOST_PLATFORM=linux-armv7l/' Makefile && \
150150
make -j4 && make -j4 install && \
151-
rm -rf Python-$VERS.tgz Python-$VERS $PREFIX/share && \
151+
cd /tmp && rm -rf Python-$VERS.tgz Python-$VERS $PREFIX/share && \
152152
# we don't need libpython*.a, and they're many megabytes
153153
find $PREFIX -name '*.a' -print0 | xargs -0 rm -f && \
154154
# We do not need the Python test suites
@@ -163,7 +163,7 @@ RUN cd /tmp && \
163163
./configure CC=$TARGET_CC AR=$TARGET_AR READELF=$TARGET_READELF --host=armv7l-unknown-linux-gnueabihf --target=armv7l-unknown-linux-gnueabihf --prefix=$PREFIX --disable-shared --with-ensurepip=no --build=$(uname -m)-linux-gnu --disable-ipv6 ac_cv_have_long_long_format=yes ac_cv_file__dev_ptmx=no ac_cv_file__dev_ptc=no && \
164164
sed -i 's/_PYTHON_HOST_PLATFORM=linux-arm/_PYTHON_HOST_PLATFORM=linux-armv7l/' Makefile && \
165165
make -j4 && make -j4 install && \
166-
rm -rf Python-$VERS.tgz Python-$VERS $PREFIX/share && \
166+
cd /tmp && rm -rf Python-$VERS.tgz Python-$VERS $PREFIX/share && \
167167
# we don't need libpython*.a, and they're many megabytes
168168
find $PREFIX -name '*.a' -print0 | xargs -0 rm -f && \
169169
# We do not need the Python test suites
@@ -178,7 +178,7 @@ RUN cd /tmp && \
178178
./configure CC=$TARGET_CC AR=$TARGET_AR READELF=$TARGET_READELF --host=armv7l-unknown-linux-gnueabihf --target=armv7l-unknown-linux-gnueabihf --prefix=$PREFIX --disable-shared --with-ensurepip=no --build=$(uname -m)-linux-gnu --disable-ipv6 ac_cv_have_long_long_format=yes ac_cv_file__dev_ptmx=no ac_cv_file__dev_ptc=no && \
179179
sed -i 's/_PYTHON_HOST_PLATFORM=linux-arm/_PYTHON_HOST_PLATFORM=linux-armv7l/' Makefile && \
180180
make -j4 && make -j4 install && \
181-
rm -rf Python-$VERS.tgz Python-$VERS $PREFIX/share && \
181+
cd /tmp && rm -rf Python-$VERS.tgz Python-$VERS $PREFIX/share && \
182182
# we don't need libpython*.a, and they're many megabytes
183183
find $PREFIX -name '*.a' -print0 | xargs -0 rm -f && \
184184
# We do not need the Python test suites
@@ -193,7 +193,7 @@ RUN cd /tmp && \
193193
./configure CC=$TARGET_CC AR=$TARGET_AR READELF=$TARGET_READELF --host=armv7l-unknown-linux-gnueabihf --target=armv7l-unknown-linux-gnueabihf --prefix=$PREFIX --disable-shared --with-build-python=python3.11 --with-ensurepip=no --build=$(uname -m)-linux-gnu --disable-ipv6 ac_cv_have_long_long_format=yes ac_cv_file__dev_ptmx=no ac_cv_file__dev_ptc=no && \
194194
sed -i 's/_PYTHON_HOST_PLATFORM=linux-arm/_PYTHON_HOST_PLATFORM=linux-armv7l/' Makefile && \
195195
make -j4 && make -j4 install && \
196-
rm -rf Python-$VERS.tgz Python-$VERS $PREFIX/share && \
196+
cd /tmp && rm -rf Python-$VERS.tgz Python-$VERS $PREFIX/share && \
197197
# we don't need libpython*.a, and they're many megabytes
198198
find $PREFIX -name '*.a' -print0 | xargs -0 rm -f && \
199199
# We do not need the Python test suites
@@ -208,7 +208,7 @@ RUN cd /tmp && \
208208
./configure CC=$TARGET_CC AR=$TARGET_AR READELF=$TARGET_READELF --host=armv7l-unknown-linux-gnueabihf --target=armv7l-unknown-linux-gnueabihf --prefix=$PREFIX --disable-shared --with-build-python=python3.12 --with-ensurepip=no --build=$(uname -m)-linux-gnu --disable-ipv6 ac_cv_have_long_long_format=yes ac_cv_file__dev_ptmx=no ac_cv_file__dev_ptc=no && \
209209
sed -i 's/_PYTHON_HOST_PLATFORM=linux-arm/_PYTHON_HOST_PLATFORM=linux-armv7l/' Makefile && \
210210
make -j4 && make -j4 install && \
211-
rm -rf Python-$VERS.tgz Python-$VERS $PREFIX/share && \
211+
cd /tmp && rm -rf Python-$VERS.tgz Python-$VERS $PREFIX/share && \
212212
# we don't need libpython*.a, and they're many megabytes
213213
find $PREFIX -name '*.a' -print0 | xargs -0 rm -f && \
214214
# We do not need the Python test suites
@@ -223,7 +223,7 @@ RUN cd /tmp && \
223223
./configure CC=$TARGET_CC AR=$TARGET_AR READELF=$TARGET_READELF --host=armv7l-unknown-linux-gnueabihf --target=armv7l-unknown-linux-gnueabihf --prefix=$PREFIX --disable-shared --with-build-python=python3.13 --with-ensurepip=no --build=$(uname -m)-linux-gnu --disable-ipv6 ac_cv_have_long_long_format=yes ac_cv_file__dev_ptmx=no ac_cv_file__dev_ptc=no && \
224224
sed -i 's/_PYTHON_HOST_PLATFORM=linux-arm/_PYTHON_HOST_PLATFORM=linux-armv7l/' Makefile && \
225225
make -j4 && make -j4 install && \
226-
rm -rf Python-$VERS.tgz Python-$VERS $PREFIX/share && \
226+
cd /tmp && rm -rf Python-$VERS.tgz Python-$VERS $PREFIX/share && \
227227
# we don't need libpython*.a, and they're many megabytes
228228
find $PREFIX -name '*.a' -print0 | xargs -0 rm -f && \
229229
# We do not need the Python test suites

manylinux2014/ppc64/Dockerfile

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ RUN cd /tmp && \
132132
tar xzf Python-$VERS.tgz && cd Python-$VERS && \
133133
./configure CC=$TARGET_CC AR=$TARGET_AR READELF=$TARGET_READELF --host=powerpc64-unknown-linux-gnu --target=powerpc64-unknown-linux-gnu --prefix=$PREFIX --disable-shared --with-ensurepip=no --build=$(uname -m)-linux-gnu --disable-ipv6 ac_cv_have_long_long_format=yes ac_cv_file__dev_ptmx=no ac_cv_file__dev_ptc=no && \
134134
make -j4 && make -j4 install && \
135-
rm -rf Python-$VERS.tgz Python-$VERS $PREFIX/share && \
135+
cd /tmp && rm -rf Python-$VERS.tgz Python-$VERS $PREFIX/share && \
136136
# we don't need libpython*.a, and they're many megabytes
137137
find $PREFIX -name '*.a' -print0 | xargs -0 rm -f && \
138138
# We do not need the Python test suites
@@ -146,7 +146,7 @@ RUN cd /tmp && \
146146
tar xzf Python-$VERS.tgz && cd Python-$VERS && \
147147
./configure CC=$TARGET_CC AR=$TARGET_AR READELF=$TARGET_READELF --host=powerpc64-unknown-linux-gnu --target=powerpc64-unknown-linux-gnu --prefix=$PREFIX --disable-shared --with-ensurepip=no --build=$(uname -m)-linux-gnu --disable-ipv6 ac_cv_have_long_long_format=yes ac_cv_file__dev_ptmx=no ac_cv_file__dev_ptc=no && \
148148
make -j4 && make -j4 install && \
149-
rm -rf Python-$VERS.tgz Python-$VERS $PREFIX/share && \
149+
cd /tmp && rm -rf Python-$VERS.tgz Python-$VERS $PREFIX/share && \
150150
# we don't need libpython*.a, and they're many megabytes
151151
find $PREFIX -name '*.a' -print0 | xargs -0 rm -f && \
152152
# We do not need the Python test suites
@@ -160,7 +160,7 @@ RUN cd /tmp && \
160160
tar xzf Python-$VERS.tgz && cd Python-$VERS && \
161161
./configure CC=$TARGET_CC AR=$TARGET_AR READELF=$TARGET_READELF --host=powerpc64-unknown-linux-gnu --target=powerpc64-unknown-linux-gnu --prefix=$PREFIX --disable-shared --with-ensurepip=no --build=$(uname -m)-linux-gnu --disable-ipv6 ac_cv_have_long_long_format=yes ac_cv_file__dev_ptmx=no ac_cv_file__dev_ptc=no && \
162162
make -j4 && make -j4 install && \
163-
rm -rf Python-$VERS.tgz Python-$VERS $PREFIX/share && \
163+
cd /tmp && rm -rf Python-$VERS.tgz Python-$VERS $PREFIX/share && \
164164
# we don't need libpython*.a, and they're many megabytes
165165
find $PREFIX -name '*.a' -print0 | xargs -0 rm -f && \
166166
# We do not need the Python test suites
@@ -174,7 +174,7 @@ RUN cd /tmp && \
174174
tar xzf Python-$VERS.tgz && cd Python-$VERS && \
175175
./configure CC=$TARGET_CC AR=$TARGET_AR READELF=$TARGET_READELF --host=powerpc64-unknown-linux-gnu --target=powerpc64-unknown-linux-gnu --prefix=$PREFIX --disable-shared --with-ensurepip=no --build=$(uname -m)-linux-gnu --disable-ipv6 ac_cv_have_long_long_format=yes ac_cv_file__dev_ptmx=no ac_cv_file__dev_ptc=no && \
176176
make -j4 && make -j4 install && \
177-
rm -rf Python-$VERS.tgz Python-$VERS $PREFIX/share && \
177+
cd /tmp && rm -rf Python-$VERS.tgz Python-$VERS $PREFIX/share && \
178178
# we don't need libpython*.a, and they're many megabytes
179179
find $PREFIX -name '*.a' -print0 | xargs -0 rm -f && \
180180
# We do not need the Python test suites
@@ -188,7 +188,7 @@ RUN cd /tmp && \
188188
tar xzf Python-$VERS.tgz && cd Python-$VERS && \
189189
./configure CC=$TARGET_CC AR=$TARGET_AR READELF=$TARGET_READELF --host=powerpc64-unknown-linux-gnu --target=powerpc64-unknown-linux-gnu --prefix=$PREFIX --disable-shared --with-build-python=python3.11 --with-ensurepip=no --build=$(uname -m)-linux-gnu --disable-ipv6 ac_cv_have_long_long_format=yes ac_cv_file__dev_ptmx=no ac_cv_file__dev_ptc=no && \
190190
make -j4 && make -j4 install && \
191-
rm -rf Python-$VERS.tgz Python-$VERS $PREFIX/share && \
191+
cd /tmp && rm -rf Python-$VERS.tgz Python-$VERS $PREFIX/share && \
192192
# we don't need libpython*.a, and they're many megabytes
193193
find $PREFIX -name '*.a' -print0 | xargs -0 rm -f && \
194194
# We do not need the Python test suites
@@ -202,7 +202,7 @@ RUN cd /tmp && \
202202
tar xzf Python-$VERS.tgz && cd Python-$VERS && \
203203
./configure CC=$TARGET_CC AR=$TARGET_AR READELF=$TARGET_READELF --host=powerpc64-unknown-linux-gnu --target=powerpc64-unknown-linux-gnu --prefix=$PREFIX --disable-shared --with-build-python=python3.12 --with-ensurepip=no --build=$(uname -m)-linux-gnu --disable-ipv6 ac_cv_have_long_long_format=yes ac_cv_file__dev_ptmx=no ac_cv_file__dev_ptc=no && \
204204
make -j4 && make -j4 install && \
205-
rm -rf Python-$VERS.tgz Python-$VERS $PREFIX/share && \
205+
cd /tmp && rm -rf Python-$VERS.tgz Python-$VERS $PREFIX/share && \
206206
# we don't need libpython*.a, and they're many megabytes
207207
find $PREFIX -name '*.a' -print0 | xargs -0 rm -f && \
208208
# We do not need the Python test suites
@@ -216,7 +216,7 @@ RUN cd /tmp && \
216216
tar xzf Python-$VERS.tgz && cd Python-$VERS && \
217217
./configure CC=$TARGET_CC AR=$TARGET_AR READELF=$TARGET_READELF --host=powerpc64-unknown-linux-gnu --target=powerpc64-unknown-linux-gnu --prefix=$PREFIX --disable-shared --with-build-python=python3.13 --with-ensurepip=no --build=$(uname -m)-linux-gnu --disable-ipv6 ac_cv_have_long_long_format=yes ac_cv_file__dev_ptmx=no ac_cv_file__dev_ptc=no && \
218218
make -j4 && make -j4 install && \
219-
rm -rf Python-$VERS.tgz Python-$VERS $PREFIX/share && \
219+
cd /tmp && rm -rf Python-$VERS.tgz Python-$VERS $PREFIX/share && \
220220
# we don't need libpython*.a, and they're many megabytes
221221
find $PREFIX -name '*.a' -print0 | xargs -0 rm -f && \
222222
# We do not need the Python test suites

manylinux_2_28/armv7l/Dockerfile

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ RUN cd /tmp && \
133133
./configure CC=$TARGET_CC AR=$TARGET_AR READELF=$TARGET_READELF --host=armv7l-unknown-linux-gnueabihf --target=armv7l-unknown-linux-gnueabihf --prefix=$PREFIX --disable-shared --with-ensurepip=no --build=$(uname -m)-linux-gnu --disable-ipv6 ac_cv_have_long_long_format=yes ac_cv_file__dev_ptmx=no ac_cv_file__dev_ptc=no && \
134134
sed -i 's/_PYTHON_HOST_PLATFORM=linux-arm/_PYTHON_HOST_PLATFORM=linux-armv7l/' Makefile && \
135135
make -j4 && make -j4 install && \
136-
rm -rf Python-$VERS.tgz Python-$VERS $PREFIX/share && \
136+
cd /tmp && rm -rf Python-$VERS.tgz Python-$VERS $PREFIX/share && \
137137
# we don't need libpython*.a, and they're many megabytes
138138
find $PREFIX -name '*.a' -print0 | xargs -0 rm -f && \
139139
# We do not need the Python test suites
@@ -148,7 +148,7 @@ RUN cd /tmp && \
148148
./configure CC=$TARGET_CC AR=$TARGET_AR READELF=$TARGET_READELF --host=armv7l-unknown-linux-gnueabihf --target=armv7l-unknown-linux-gnueabihf --prefix=$PREFIX --disable-shared --with-ensurepip=no --build=$(uname -m)-linux-gnu --disable-ipv6 ac_cv_have_long_long_format=yes ac_cv_file__dev_ptmx=no ac_cv_file__dev_ptc=no && \
149149
sed -i 's/_PYTHON_HOST_PLATFORM=linux-arm/_PYTHON_HOST_PLATFORM=linux-armv7l/' Makefile && \
150150
make -j4 && make -j4 install && \
151-
rm -rf Python-$VERS.tgz Python-$VERS $PREFIX/share && \
151+
cd /tmp && rm -rf Python-$VERS.tgz Python-$VERS $PREFIX/share && \
152152
# we don't need libpython*.a, and they're many megabytes
153153
find $PREFIX -name '*.a' -print0 | xargs -0 rm -f && \
154154
# We do not need the Python test suites
@@ -163,7 +163,7 @@ RUN cd /tmp && \
163163
./configure CC=$TARGET_CC AR=$TARGET_AR READELF=$TARGET_READELF --host=armv7l-unknown-linux-gnueabihf --target=armv7l-unknown-linux-gnueabihf --prefix=$PREFIX --disable-shared --with-ensurepip=no --build=$(uname -m)-linux-gnu --disable-ipv6 ac_cv_have_long_long_format=yes ac_cv_file__dev_ptmx=no ac_cv_file__dev_ptc=no && \
164164
sed -i 's/_PYTHON_HOST_PLATFORM=linux-arm/_PYTHON_HOST_PLATFORM=linux-armv7l/' Makefile && \
165165
make -j4 && make -j4 install && \
166-
rm -rf Python-$VERS.tgz Python-$VERS $PREFIX/share && \
166+
cd /tmp && rm -rf Python-$VERS.tgz Python-$VERS $PREFIX/share && \
167167
# we don't need libpython*.a, and they're many megabytes
168168
find $PREFIX -name '*.a' -print0 | xargs -0 rm -f && \
169169
# We do not need the Python test suites
@@ -178,7 +178,7 @@ RUN cd /tmp && \
178178
./configure CC=$TARGET_CC AR=$TARGET_AR READELF=$TARGET_READELF --host=armv7l-unknown-linux-gnueabihf --target=armv7l-unknown-linux-gnueabihf --prefix=$PREFIX --disable-shared --with-ensurepip=no --build=$(uname -m)-linux-gnu --disable-ipv6 ac_cv_have_long_long_format=yes ac_cv_file__dev_ptmx=no ac_cv_file__dev_ptc=no && \
179179
sed -i 's/_PYTHON_HOST_PLATFORM=linux-arm/_PYTHON_HOST_PLATFORM=linux-armv7l/' Makefile && \
180180
make -j4 && make -j4 install && \
181-
rm -rf Python-$VERS.tgz Python-$VERS $PREFIX/share && \
181+
cd /tmp && rm -rf Python-$VERS.tgz Python-$VERS $PREFIX/share && \
182182
# we don't need libpython*.a, and they're many megabytes
183183
find $PREFIX -name '*.a' -print0 | xargs -0 rm -f && \
184184
# We do not need the Python test suites
@@ -193,7 +193,7 @@ RUN cd /tmp && \
193193
./configure CC=$TARGET_CC AR=$TARGET_AR READELF=$TARGET_READELF --host=armv7l-unknown-linux-gnueabihf --target=armv7l-unknown-linux-gnueabihf --prefix=$PREFIX --disable-shared --with-build-python=python3.11 --with-ensurepip=no --build=$(uname -m)-linux-gnu --disable-ipv6 ac_cv_have_long_long_format=yes ac_cv_file__dev_ptmx=no ac_cv_file__dev_ptc=no && \
194194
sed -i 's/_PYTHON_HOST_PLATFORM=linux-arm/_PYTHON_HOST_PLATFORM=linux-armv7l/' Makefile && \
195195
make -j4 && make -j4 install && \
196-
rm -rf Python-$VERS.tgz Python-$VERS $PREFIX/share && \
196+
cd /tmp && rm -rf Python-$VERS.tgz Python-$VERS $PREFIX/share && \
197197
# we don't need libpython*.a, and they're many megabytes
198198
find $PREFIX -name '*.a' -print0 | xargs -0 rm -f && \
199199
# We do not need the Python test suites
@@ -208,7 +208,7 @@ RUN cd /tmp && \
208208
./configure CC=$TARGET_CC AR=$TARGET_AR READELF=$TARGET_READELF --host=armv7l-unknown-linux-gnueabihf --target=armv7l-unknown-linux-gnueabihf --prefix=$PREFIX --disable-shared --with-build-python=python3.12 --with-ensurepip=no --build=$(uname -m)-linux-gnu --disable-ipv6 ac_cv_have_long_long_format=yes ac_cv_file__dev_ptmx=no ac_cv_file__dev_ptc=no && \
209209
sed -i 's/_PYTHON_HOST_PLATFORM=linux-arm/_PYTHON_HOST_PLATFORM=linux-armv7l/' Makefile && \
210210
make -j4 && make -j4 install && \
211-
rm -rf Python-$VERS.tgz Python-$VERS $PREFIX/share && \
211+
cd /tmp && rm -rf Python-$VERS.tgz Python-$VERS $PREFIX/share && \
212212
# we don't need libpython*.a, and they're many megabytes
213213
find $PREFIX -name '*.a' -print0 | xargs -0 rm -f && \
214214
# We do not need the Python test suites
@@ -223,7 +223,7 @@ RUN cd /tmp && \
223223
./configure CC=$TARGET_CC AR=$TARGET_AR READELF=$TARGET_READELF --host=armv7l-unknown-linux-gnueabihf --target=armv7l-unknown-linux-gnueabihf --prefix=$PREFIX --disable-shared --with-build-python=python3.13 --with-ensurepip=no --build=$(uname -m)-linux-gnu --disable-ipv6 ac_cv_have_long_long_format=yes ac_cv_file__dev_ptmx=no ac_cv_file__dev_ptc=no && \
224224
sed -i 's/_PYTHON_HOST_PLATFORM=linux-arm/_PYTHON_HOST_PLATFORM=linux-armv7l/' Makefile && \
225225
make -j4 && make -j4 install && \
226-
rm -rf Python-$VERS.tgz Python-$VERS $PREFIX/share && \
226+
cd /tmp && rm -rf Python-$VERS.tgz Python-$VERS $PREFIX/share && \
227227
# we don't need libpython*.a, and they're many megabytes
228228
find $PREFIX -name '*.a' -print0 | xargs -0 rm -f && \
229229
# We do not need the Python test suites

0 commit comments

Comments
 (0)