File tree 35 files changed +368
-0
lines changed
35 files changed +368
-0
lines changed Original file line number Diff line number Diff line change @@ -69,6 +69,8 @@ RUN set -ex \
69
69
&& gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \
70
70
&& ./configure \
71
71
--build="$gnuArch" \
72
+ --enable-optimizations \
73
+ --enable-option-checking=fatal \
72
74
--enable-shared \
73
75
--enable-unicode=ucs4 \
74
76
--with-system-expat \
@@ -77,6 +79,42 @@ RUN set -ex \
77
79
# set thread stack size to 1MB so we don't segfault before we hit sys.getrecursionlimit()
78
80
# https://github.com/alpinelinux/aports/commit/2026e1259422d4e0cf92391ca2d3844356c649d0
79
81
EXTRA_CFLAGS="-DTHREAD_STACK_SIZE=0x100000" \
82
+ # setting PROFILE_TASK makes "--enable-optimizations" reasonable: https://bugs.python.org/issue36044 / https://github.com/docker-library/python/issues/160#issuecomment-509426916
83
+ PROFILE_TASK='-m test.regrtest --pgo \
84
+ test_array \
85
+ test_base64 \
86
+ test_binascii \
87
+ test_binhex \
88
+ test_binop \
89
+ test_bytes \
90
+ test_c_locale_coercion \
91
+ test_class \
92
+ test_cmath \
93
+ test_codecs \
94
+ test_compile \
95
+ test_complex \
96
+ test_csv \
97
+ test_decimal \
98
+ test_dict \
99
+ test_float \
100
+ test_fstring \
101
+ test_hashlib \
102
+ test_io \
103
+ test_iter \
104
+ test_json \
105
+ test_long \
106
+ test_math \
107
+ test_memoryview \
108
+ test_pickle \
109
+ test_re \
110
+ test_set \
111
+ test_slice \
112
+ test_struct \
113
+ test_threading \
114
+ test_time \
115
+ test_traceback \
116
+ test_unicode \
117
+ ' \
80
118
&& make install \
81
119
\
82
120
&& find /usr/local -type f -executable -not \( -name '*tkinter*' \) -exec scanelf --needed --nobanner --format '%n#p' '{}' ';' \
Original file line number Diff line number Diff line change @@ -69,6 +69,8 @@ RUN set -ex \
69
69
&& gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \
70
70
&& ./configure \
71
71
--build="$gnuArch" \
72
+ --enable-optimizations \
73
+ --enable-option-checking=fatal \
72
74
--enable-shared \
73
75
--enable-unicode=ucs4 \
74
76
--with-system-expat \
@@ -77,6 +79,42 @@ RUN set -ex \
77
79
# set thread stack size to 1MB so we don't segfault before we hit sys.getrecursionlimit()
78
80
# https://github.com/alpinelinux/aports/commit/2026e1259422d4e0cf92391ca2d3844356c649d0
79
81
EXTRA_CFLAGS="-DTHREAD_STACK_SIZE=0x100000" \
82
+ # setting PROFILE_TASK makes "--enable-optimizations" reasonable: https://bugs.python.org/issue36044 / https://github.com/docker-library/python/issues/160#issuecomment-509426916
83
+ PROFILE_TASK='-m test.regrtest --pgo \
84
+ test_array \
85
+ test_base64 \
86
+ test_binascii \
87
+ test_binhex \
88
+ test_binop \
89
+ test_bytes \
90
+ test_c_locale_coercion \
91
+ test_class \
92
+ test_cmath \
93
+ test_codecs \
94
+ test_compile \
95
+ test_complex \
96
+ test_csv \
97
+ test_decimal \
98
+ test_dict \
99
+ test_float \
100
+ test_fstring \
101
+ test_hashlib \
102
+ test_io \
103
+ test_iter \
104
+ test_json \
105
+ test_long \
106
+ test_math \
107
+ test_memoryview \
108
+ test_pickle \
109
+ test_re \
110
+ test_set \
111
+ test_slice \
112
+ test_struct \
113
+ test_threading \
114
+ test_time \
115
+ test_traceback \
116
+ test_unicode \
117
+ ' \
80
118
&& make install \
81
119
\
82
120
&& find /usr/local -type f -executable -not \( -name '*tkinter*' \) -exec scanelf --needed --nobanner --format '%n#p' '{}' ';' \
Original file line number Diff line number Diff line change @@ -40,9 +40,47 @@ RUN set -ex \
40
40
&& gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \
41
41
&& ./configure \
42
42
--build="$gnuArch" \
43
+ --enable-optimizations \
44
+ --enable-option-checking=fatal \
43
45
--enable-shared \
44
46
--enable-unicode=ucs4 \
45
47
&& make -j "$(nproc)" \
48
+ # setting PROFILE_TASK makes "--enable-optimizations" reasonable: https://bugs.python.org/issue36044 / https://github.com/docker-library/python/issues/160#issuecomment-509426916
49
+ PROFILE_TASK='-m test.regrtest --pgo \
50
+ test_array \
51
+ test_base64 \
52
+ test_binascii \
53
+ test_binhex \
54
+ test_binop \
55
+ test_bytes \
56
+ test_c_locale_coercion \
57
+ test_class \
58
+ test_cmath \
59
+ test_codecs \
60
+ test_compile \
61
+ test_complex \
62
+ test_csv \
63
+ test_decimal \
64
+ test_dict \
65
+ test_float \
66
+ test_fstring \
67
+ test_hashlib \
68
+ test_io \
69
+ test_iter \
70
+ test_json \
71
+ test_long \
72
+ test_math \
73
+ test_memoryview \
74
+ test_pickle \
75
+ test_re \
76
+ test_set \
77
+ test_slice \
78
+ test_struct \
79
+ test_threading \
80
+ test_time \
81
+ test_traceback \
82
+ test_unicode \
83
+ ' \
46
84
&& make install \
47
85
&& ldconfig \
48
86
\
Original file line number Diff line number Diff line change @@ -61,9 +61,47 @@ RUN set -ex \
61
61
&& gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \
62
62
&& ./configure \
63
63
--build="$gnuArch" \
64
+ --enable-optimizations \
65
+ --enable-option-checking=fatal \
64
66
--enable-shared \
65
67
--enable-unicode=ucs4 \
66
68
&& make -j "$(nproc)" \
69
+ # setting PROFILE_TASK makes "--enable-optimizations" reasonable: https://bugs.python.org/issue36044 / https://github.com/docker-library/python/issues/160#issuecomment-509426916
70
+ PROFILE_TASK='-m test.regrtest --pgo \
71
+ test_array \
72
+ test_base64 \
73
+ test_binascii \
74
+ test_binhex \
75
+ test_binop \
76
+ test_bytes \
77
+ test_c_locale_coercion \
78
+ test_class \
79
+ test_cmath \
80
+ test_codecs \
81
+ test_compile \
82
+ test_complex \
83
+ test_csv \
84
+ test_decimal \
85
+ test_dict \
86
+ test_float \
87
+ test_fstring \
88
+ test_hashlib \
89
+ test_io \
90
+ test_iter \
91
+ test_json \
92
+ test_long \
93
+ test_math \
94
+ test_memoryview \
95
+ test_pickle \
96
+ test_re \
97
+ test_set \
98
+ test_slice \
99
+ test_struct \
100
+ test_threading \
101
+ test_time \
102
+ test_traceback \
103
+ test_unicode \
104
+ ' \
67
105
&& make install \
68
106
&& ldconfig \
69
107
\
Original file line number Diff line number Diff line change @@ -40,9 +40,47 @@ RUN set -ex \
40
40
&& gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \
41
41
&& ./configure \
42
42
--build="$gnuArch" \
43
+ --enable-optimizations \
44
+ --enable-option-checking=fatal \
43
45
--enable-shared \
44
46
--enable-unicode=ucs4 \
45
47
&& make -j "$(nproc)" \
48
+ # setting PROFILE_TASK makes "--enable-optimizations" reasonable: https://bugs.python.org/issue36044 / https://github.com/docker-library/python/issues/160#issuecomment-509426916
49
+ PROFILE_TASK='-m test.regrtest --pgo \
50
+ test_array \
51
+ test_base64 \
52
+ test_binascii \
53
+ test_binhex \
54
+ test_binop \
55
+ test_bytes \
56
+ test_c_locale_coercion \
57
+ test_class \
58
+ test_cmath \
59
+ test_codecs \
60
+ test_compile \
61
+ test_complex \
62
+ test_csv \
63
+ test_decimal \
64
+ test_dict \
65
+ test_float \
66
+ test_fstring \
67
+ test_hashlib \
68
+ test_io \
69
+ test_iter \
70
+ test_json \
71
+ test_long \
72
+ test_math \
73
+ test_memoryview \
74
+ test_pickle \
75
+ test_re \
76
+ test_set \
77
+ test_slice \
78
+ test_struct \
79
+ test_threading \
80
+ test_time \
81
+ test_traceback \
82
+ test_unicode \
83
+ ' \
46
84
&& make install \
47
85
&& ldconfig \
48
86
\
Original file line number Diff line number Diff line change @@ -61,9 +61,47 @@ RUN set -ex \
61
61
&& gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \
62
62
&& ./configure \
63
63
--build="$gnuArch" \
64
+ --enable-optimizations \
65
+ --enable-option-checking=fatal \
64
66
--enable-shared \
65
67
--enable-unicode=ucs4 \
66
68
&& make -j "$(nproc)" \
69
+ # setting PROFILE_TASK makes "--enable-optimizations" reasonable: https://bugs.python.org/issue36044 / https://github.com/docker-library/python/issues/160#issuecomment-509426916
70
+ PROFILE_TASK='-m test.regrtest --pgo \
71
+ test_array \
72
+ test_base64 \
73
+ test_binascii \
74
+ test_binhex \
75
+ test_binop \
76
+ test_bytes \
77
+ test_c_locale_coercion \
78
+ test_class \
79
+ test_cmath \
80
+ test_codecs \
81
+ test_compile \
82
+ test_complex \
83
+ test_csv \
84
+ test_decimal \
85
+ test_dict \
86
+ test_float \
87
+ test_fstring \
88
+ test_hashlib \
89
+ test_io \
90
+ test_iter \
91
+ test_json \
92
+ test_long \
93
+ test_math \
94
+ test_memoryview \
95
+ test_pickle \
96
+ test_re \
97
+ test_set \
98
+ test_slice \
99
+ test_struct \
100
+ test_threading \
101
+ test_time \
102
+ test_traceback \
103
+ test_unicode \
104
+ ' \
67
105
&& make install \
68
106
&& ldconfig \
69
107
\
Original file line number Diff line number Diff line change @@ -68,6 +68,7 @@ RUN set -ex \
68
68
--build="$gnuArch" \
69
69
--enable-loadable-sqlite-extensions \
70
70
--enable-optimizations \
71
+ --enable-option-checking=fatal \
71
72
--enable-shared \
72
73
--with-system-expat \
73
74
--with-system-ffi \
Original file line number Diff line number Diff line change @@ -68,6 +68,7 @@ RUN set -ex \
68
68
--build="$gnuArch" \
69
69
--enable-loadable-sqlite-extensions \
70
70
--enable-optimizations \
71
+ --enable-option-checking=fatal \
71
72
--enable-shared \
72
73
--with-system-expat \
73
74
--with-system-ffi \
Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ RUN set -ex \
40
40
--build="$gnuArch" \
41
41
--enable-loadable-sqlite-extensions \
42
42
--enable-optimizations \
43
+ --enable-option-checking=fatal \
43
44
--enable-shared \
44
45
--with-system-expat \
45
46
--with-system-ffi \
Original file line number Diff line number Diff line change @@ -63,6 +63,7 @@ RUN set -ex \
63
63
--build="$gnuArch" \
64
64
--enable-loadable-sqlite-extensions \
65
65
--enable-optimizations \
66
+ --enable-option-checking=fatal \
66
67
--enable-shared \
67
68
--with-system-expat \
68
69
--with-system-ffi \
Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ RUN set -ex \
40
40
--build="$gnuArch" \
41
41
--enable-loadable-sqlite-extensions \
42
42
--enable-optimizations \
43
+ --enable-option-checking=fatal \
43
44
--enable-shared \
44
45
--with-system-expat \
45
46
--with-system-ffi \
Original file line number Diff line number Diff line change @@ -63,6 +63,7 @@ RUN set -ex \
63
63
--build="$gnuArch" \
64
64
--enable-loadable-sqlite-extensions \
65
65
--enable-optimizations \
66
+ --enable-option-checking=fatal \
66
67
--enable-shared \
67
68
--with-system-expat \
68
69
--with-system-ffi \
Original file line number Diff line number Diff line change @@ -70,6 +70,7 @@ RUN set -ex \
70
70
--build="$gnuArch" \
71
71
--enable-loadable-sqlite-extensions \
72
72
--enable-optimizations \
73
+ --enable-option-checking=fatal \
73
74
--enable-shared \
74
75
--with-system-expat \
75
76
--with-system-ffi \
Original file line number Diff line number Diff line change @@ -70,6 +70,7 @@ RUN set -ex \
70
70
--build="$gnuArch" \
71
71
--enable-loadable-sqlite-extensions \
72
72
--enable-optimizations \
73
+ --enable-option-checking=fatal \
73
74
--enable-shared \
74
75
--with-system-expat \
75
76
--with-system-ffi \
Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ RUN set -ex \
40
40
--build="$gnuArch" \
41
41
--enable-loadable-sqlite-extensions \
42
42
--enable-optimizations \
43
+ --enable-option-checking=fatal \
43
44
--enable-shared \
44
45
--with-system-expat \
45
46
--with-system-ffi \
Original file line number Diff line number Diff line change @@ -63,6 +63,7 @@ RUN set -ex \
63
63
--build="$gnuArch" \
64
64
--enable-loadable-sqlite-extensions \
65
65
--enable-optimizations \
66
+ --enable-option-checking=fatal \
66
67
--enable-shared \
67
68
--with-system-expat \
68
69
--with-system-ffi \
Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ RUN set -ex \
40
40
--build="$gnuArch" \
41
41
--enable-loadable-sqlite-extensions \
42
42
--enable-optimizations \
43
+ --enable-option-checking=fatal \
43
44
--enable-shared \
44
45
--with-system-expat \
45
46
--with-system-ffi \
Original file line number Diff line number Diff line change @@ -63,6 +63,7 @@ RUN set -ex \
63
63
--build="$gnuArch" \
64
64
--enable-loadable-sqlite-extensions \
65
65
--enable-optimizations \
66
+ --enable-option-checking=fatal \
66
67
--enable-shared \
67
68
--with-system-expat \
68
69
--with-system-ffi \
Original file line number Diff line number Diff line change @@ -71,6 +71,7 @@ RUN set -ex \
71
71
--build="$gnuArch" \
72
72
--enable-loadable-sqlite-extensions \
73
73
--enable-optimizations \
74
+ --enable-option-checking=fatal \
74
75
--enable-shared \
75
76
--with-system-expat \
76
77
--with-system-ffi \
You can’t perform that action at this time.
0 commit comments