File tree Expand file tree Collapse file tree 22 files changed +80
-7
lines changed Expand file tree Collapse file tree 22 files changed +80
-7
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ ENV PYTHON_VERSION 2.7.13
18
18
19
19
RUN set -ex \
20
20
&& buildDeps=' \
21
+ dpkg-dev \
21
22
tcl-dev \
22
23
tk-dev \
23
24
' \
@@ -34,7 +35,9 @@ RUN set -ex \
34
35
&& rm python.tar.xz \
35
36
\
36
37
&& cd /usr/src/python \
38
+ && gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \
37
39
&& ./configure \
40
+ --build="$gnuArch" \
38
41
--enable-shared \
39
42
--enable-unicode=ucs4 \
40
43
&& make -j "$(nproc)" \
Original file line number Diff line number Diff line change @@ -33,6 +33,8 @@ RUN set -ex \
33
33
\
34
34
&& apk add --no-cache --virtual .build-deps \
35
35
bzip2-dev \
36
+ coreutils \
37
+ dpkg-dev dpkg \
36
38
gcc \
37
39
gdbm-dev \
38
40
libc-dev \
@@ -52,10 +54,12 @@ RUN set -ex \
52
54
&& apk del .fetch-deps \
53
55
\
54
56
&& cd /usr/src/python \
57
+ && gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \
55
58
&& ./configure \
59
+ --build="$gnuArch" \
56
60
--enable-shared \
57
61
--enable-unicode=ucs4 \
58
- && make -j "$(getconf _NPROCESSORS_ONLN )" \
62
+ && make -j "$(nproc )" \
59
63
&& make install \
60
64
\
61
65
&& runDeps="$( \
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ ENV PYTHON_VERSION 2.7.13
20
20
21
21
RUN set -ex \
22
22
&& buildDeps=' \
23
+ dpkg-dev \
23
24
gcc \
24
25
libbz2-dev \
25
26
libc6-dev \
@@ -49,7 +50,9 @@ RUN set -ex \
49
50
&& rm python.tar.xz \
50
51
\
51
52
&& cd /usr/src/python \
53
+ && gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \
52
54
&& ./configure \
55
+ --build="$gnuArch" \
53
56
--enable-shared \
54
57
--enable-unicode=ucs4 \
55
58
&& make -j "$(nproc)" \
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ ENV PYTHON_VERSION 2.7.13
18
18
19
19
RUN set -ex \
20
20
&& buildDeps=' \
21
+ dpkg-dev \
21
22
tcl-dev \
22
23
tk-dev \
23
24
' \
@@ -34,7 +35,9 @@ RUN set -ex \
34
35
&& rm python.tar.xz \
35
36
\
36
37
&& cd /usr/src/python \
38
+ && gnuArch="$(dpkg-architecture -qDEB_BUILD_GNU_TYPE)" \
37
39
&& ./configure \
40
+ --build="$gnuArch" \
38
41
--enable-shared \
39
42
--enable-unicode=ucs4 \
40
43
&& make -j "$(nproc)" \
Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ ENV PYTHON_VERSION 3.3.6
24
24
25
25
RUN set -ex \
26
26
&& buildDeps=' \
27
+ dpkg-dev \
27
28
tcl-dev \
28
29
tk-dev \
29
30
' \
@@ -40,7 +41,9 @@ RUN set -ex \
40
41
&& rm python.tar.xz \
41
42
\
42
43
&& cd /usr/src/python \
44
+ && gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \
43
45
&& ./configure \
46
+ --build="$gnuArch" \
44
47
--enable-loadable-sqlite-extensions \
45
48
--enable-shared \
46
49
--without-ensurepip \
Original file line number Diff line number Diff line change @@ -39,6 +39,8 @@ RUN set -ex \
39
39
\
40
40
&& apk add --no-cache --virtual .build-deps \
41
41
bzip2-dev \
42
+ coreutils \
43
+ dpkg-dev dpkg \
42
44
gcc \
43
45
gdbm-dev \
44
46
libc-dev \
@@ -59,11 +61,13 @@ RUN set -ex \
59
61
&& apk del .fetch-deps \
60
62
\
61
63
&& cd /usr/src/python \
64
+ && gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \
62
65
&& ./configure \
66
+ --build="$gnuArch" \
63
67
--enable-loadable-sqlite-extensions \
64
68
--enable-shared \
65
69
--without-ensurepip \
66
- && make -j "$(getconf _NPROCESSORS_ONLN )" \
70
+ && make -j "$(nproc )" \
67
71
&& make install \
68
72
\
69
73
&& runDeps="$( \
Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ ENV PYTHON_VERSION 3.3.6
26
26
27
27
RUN set -ex \
28
28
&& buildDeps=' \
29
+ dpkg-dev \
29
30
gcc \
30
31
libbz2-dev \
31
32
libc6-dev \
@@ -55,7 +56,9 @@ RUN set -ex \
55
56
&& rm python.tar.xz \
56
57
\
57
58
&& cd /usr/src/python \
59
+ && gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \
58
60
&& ./configure \
61
+ --build="$gnuArch" \
59
62
--enable-loadable-sqlite-extensions \
60
63
--enable-shared \
61
64
--without-ensurepip \
Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ ENV PYTHON_VERSION 3.3.6
24
24
25
25
RUN set -ex \
26
26
&& buildDeps=' \
27
+ dpkg-dev \
27
28
tcl-dev \
28
29
tk-dev \
29
30
' \
@@ -40,7 +41,9 @@ RUN set -ex \
40
41
&& rm python.tar.xz \
41
42
\
42
43
&& cd /usr/src/python \
44
+ && gnuArch="$(dpkg-architecture -qDEB_BUILD_GNU_TYPE)" \
43
45
&& ./configure \
46
+ --build="$gnuArch" \
44
47
--enable-loadable-sqlite-extensions \
45
48
--enable-shared \
46
49
--without-ensurepip \
Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ ENV PYTHON_VERSION 3.4.6
24
24
25
25
RUN set -ex \
26
26
&& buildDeps=' \
27
+ dpkg-dev \
27
28
tcl-dev \
28
29
tk-dev \
29
30
' \
@@ -40,7 +41,9 @@ RUN set -ex \
40
41
&& rm python.tar.xz \
41
42
\
42
43
&& cd /usr/src/python \
44
+ && gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \
43
45
&& ./configure \
46
+ --build="$gnuArch" \
44
47
--enable-loadable-sqlite-extensions \
45
48
--enable-shared \
46
49
--without-ensurepip \
Original file line number Diff line number Diff line change @@ -39,6 +39,8 @@ RUN set -ex \
39
39
\
40
40
&& apk add --no-cache --virtual .build-deps \
41
41
bzip2-dev \
42
+ coreutils \
43
+ dpkg-dev dpkg \
42
44
gcc \
43
45
gdbm-dev \
44
46
libc-dev \
@@ -59,11 +61,13 @@ RUN set -ex \
59
61
&& apk del .fetch-deps \
60
62
\
61
63
&& cd /usr/src/python \
64
+ && gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \
62
65
&& ./configure \
66
+ --build="$gnuArch" \
63
67
--enable-loadable-sqlite-extensions \
64
68
--enable-shared \
65
69
--without-ensurepip \
66
- && make -j "$(getconf _NPROCESSORS_ONLN )" \
70
+ && make -j "$(nproc )" \
67
71
&& make install \
68
72
\
69
73
&& runDeps="$( \
Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ ENV PYTHON_VERSION 3.4.6
26
26
27
27
RUN set -ex \
28
28
&& buildDeps=' \
29
+ dpkg-dev \
29
30
gcc \
30
31
libbz2-dev \
31
32
libc6-dev \
@@ -55,7 +56,9 @@ RUN set -ex \
55
56
&& rm python.tar.xz \
56
57
\
57
58
&& cd /usr/src/python \
59
+ && gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \
58
60
&& ./configure \
61
+ --build="$gnuArch" \
59
62
--enable-loadable-sqlite-extensions \
60
63
--enable-shared \
61
64
--without-ensurepip \
Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ ENV PYTHON_VERSION 3.4.6
24
24
25
25
RUN set -ex \
26
26
&& buildDeps=' \
27
+ dpkg-dev \
27
28
tcl-dev \
28
29
tk-dev \
29
30
' \
@@ -40,7 +41,9 @@ RUN set -ex \
40
41
&& rm python.tar.xz \
41
42
\
42
43
&& cd /usr/src/python \
44
+ && gnuArch="$(dpkg-architecture -qDEB_BUILD_GNU_TYPE)" \
43
45
&& ./configure \
46
+ --build="$gnuArch" \
44
47
--enable-loadable-sqlite-extensions \
45
48
--enable-shared \
46
49
--without-ensurepip \
Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ ENV PYTHON_VERSION 3.5.3
24
24
25
25
RUN set -ex \
26
26
&& buildDeps=' \
27
+ dpkg-dev \
27
28
tcl-dev \
28
29
tk-dev \
29
30
' \
@@ -40,7 +41,9 @@ RUN set -ex \
40
41
&& rm python.tar.xz \
41
42
\
42
43
&& cd /usr/src/python \
44
+ && gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \
43
45
&& ./configure \
46
+ --build="$gnuArch" \
44
47
--enable-loadable-sqlite-extensions \
45
48
--enable-shared \
46
49
--without-ensurepip \
Original file line number Diff line number Diff line change @@ -39,6 +39,8 @@ RUN set -ex \
39
39
\
40
40
&& apk add --no-cache --virtual .build-deps \
41
41
bzip2-dev \
42
+ coreutils \
43
+ dpkg-dev dpkg \
42
44
gcc \
43
45
gdbm-dev \
44
46
libc-dev \
@@ -59,11 +61,13 @@ RUN set -ex \
59
61
&& apk del .fetch-deps \
60
62
\
61
63
&& cd /usr/src/python \
64
+ && gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \
62
65
&& ./configure \
66
+ --build="$gnuArch" \
63
67
--enable-loadable-sqlite-extensions \
64
68
--enable-shared \
65
69
--without-ensurepip \
66
- && make -j "$(getconf _NPROCESSORS_ONLN )" \
70
+ && make -j "$(nproc )" \
67
71
&& make install \
68
72
\
69
73
&& runDeps="$( \
Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ ENV PYTHON_VERSION 3.5.3
26
26
27
27
RUN set -ex \
28
28
&& buildDeps=' \
29
+ dpkg-dev \
29
30
gcc \
30
31
libbz2-dev \
31
32
libc6-dev \
@@ -55,7 +56,9 @@ RUN set -ex \
55
56
&& rm python.tar.xz \
56
57
\
57
58
&& cd /usr/src/python \
59
+ && gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \
58
60
&& ./configure \
61
+ --build="$gnuArch" \
59
62
--enable-loadable-sqlite-extensions \
60
63
--enable-shared \
61
64
--without-ensurepip \
Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ ENV PYTHON_VERSION 3.6.1
24
24
25
25
RUN set -ex \
26
26
&& buildDeps=' \
27
+ dpkg-dev \
27
28
tcl-dev \
28
29
tk-dev \
29
30
' \
@@ -40,7 +41,9 @@ RUN set -ex \
40
41
&& rm python.tar.xz \
41
42
\
42
43
&& cd /usr/src/python \
44
+ && gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \
43
45
&& ./configure \
46
+ --build="$gnuArch" \
44
47
--enable-loadable-sqlite-extensions \
45
48
--enable-shared \
46
49
--without-ensurepip \
Original file line number Diff line number Diff line change @@ -39,6 +39,8 @@ RUN set -ex \
39
39
\
40
40
&& apk add --no-cache --virtual .build-deps \
41
41
bzip2-dev \
42
+ coreutils \
43
+ dpkg-dev dpkg \
42
44
gcc \
43
45
gdbm-dev \
44
46
libc-dev \
@@ -59,11 +61,13 @@ RUN set -ex \
59
61
&& apk del .fetch-deps \
60
62
\
61
63
&& cd /usr/src/python \
64
+ && gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \
62
65
&& ./configure \
66
+ --build="$gnuArch" \
63
67
--enable-loadable-sqlite-extensions \
64
68
--enable-shared \
65
69
--without-ensurepip \
66
- && make -j "$(getconf _NPROCESSORS_ONLN )" \
70
+ && make -j "$(nproc )" \
67
71
&& make install \
68
72
\
69
73
&& runDeps="$( \
Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ ENV PYTHON_VERSION 3.6.1
26
26
27
27
RUN set -ex \
28
28
&& buildDeps=' \
29
+ dpkg-dev \
29
30
gcc \
30
31
libbz2-dev \
31
32
libc6-dev \
@@ -55,7 +56,9 @@ RUN set -ex \
55
56
&& rm python.tar.xz \
56
57
\
57
58
&& cd /usr/src/python \
59
+ && gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \
58
60
&& ./configure \
61
+ --build="$gnuArch" \
59
62
--enable-loadable-sqlite-extensions \
60
63
--enable-shared \
61
64
--without-ensurepip \
Original file line number Diff line number Diff line change @@ -33,6 +33,8 @@ RUN set -ex \
33
33
\
34
34
&& apk add --no-cache --virtual .build-deps \
35
35
bzip2-dev \
36
+ coreutils \
37
+ dpkg-dev dpkg \
36
38
gcc \
37
39
gdbm-dev \
38
40
libc-dev \
@@ -53,11 +55,13 @@ RUN set -ex \
53
55
&& apk del .fetch-deps \
54
56
\
55
57
&& cd /usr/src/python \
58
+ && gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \
56
59
&& ./configure \
60
+ --build="$gnuArch" \
57
61
--enable-loadable-sqlite-extensions \
58
62
--enable-shared \
59
63
--without-ensurepip \
60
- && make -j "$(getconf _NPROCESSORS_ONLN )" \
64
+ && make -j "$(nproc )" \
61
65
&& make install \
62
66
\
63
67
&& runDeps="$( \
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ ENV PYTHON_VERSION %%PLACEHOLDER%%
18
18
19
19
RUN set -ex \
20
20
&& buildDeps=' \
21
+ dpkg-dev \
21
22
tcl-dev \
22
23
tk-dev \
23
24
' \
@@ -34,7 +35,9 @@ RUN set -ex \
34
35
&& rm python.tar.xz \
35
36
\
36
37
&& cd /usr/src/python \
38
+ && gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \
37
39
&& ./configure \
40
+ --build="$gnuArch" \
38
41
--enable-loadable-sqlite-extensions \
39
42
--enable-shared \
40
43
--without-ensurepip \
You can’t perform that action at this time.
0 commit comments