File tree Expand file tree Collapse file tree 6 files changed +18
-0
lines changed Expand file tree Collapse file tree 6 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -59,6 +59,7 @@ RUN set -ex \
59
59
tcl-dev \
60
60
tk \
61
61
tk-dev \
62
+ util-linux-dev \
62
63
xz-dev \
63
64
zlib-dev \
64
65
# add build deps before removing fetch deps in case there's overlap
Original file line number Diff line number Diff line change @@ -59,6 +59,7 @@ RUN set -ex \
59
59
tcl-dev \
60
60
tk \
61
61
tk-dev \
62
+ util-linux-dev \
62
63
xz-dev \
63
64
zlib-dev \
64
65
# add build deps before removing fetch deps in case there's overlap
Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ RUN set -ex \
40
40
libssl-dev \
41
41
make \
42
42
tk-dev \
43
+ uuid-dev \
43
44
wget \
44
45
xz-utils \
45
46
zlib1g-dev \
Original file line number Diff line number Diff line change @@ -55,6 +55,7 @@ RUN set -ex \
55
55
tcl-dev \
56
56
tk \
57
57
tk-dev \
58
+ util-linux-dev \
58
59
xz-dev \
59
60
zlib-dev \
60
61
# add build deps before removing fetch deps in case there's overlap
Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ RUN set -ex \
34
34
libssl-dev \
35
35
make \
36
36
tk-dev \
37
+ uuid-dev \
37
38
wget \
38
39
xz-utils \
39
40
zlib1g-dev \
Original file line number Diff line number Diff line change @@ -165,6 +165,19 @@ for version in "${versions[@]}"; do
165
165
mv " $dir /Dockerfile.new" " $dir /Dockerfile"
166
166
fi
167
167
168
+ # https://bugs.python.org/issue11063, https://bugs.python.org/issue20519 (Python 3.7.0+)
169
+ # A new native _uuid module improves uuid import time and avoids using ctypes.
170
+ # This requires the development libuuid headers.
171
+ case " $version " in
172
+ 3.4* | 3.5* | 3.6* )
173
+ if [[ " $v " = alpine* ]]; then
174
+ sed -ri -e ' /util-linux-dev/d' " $dir /Dockerfile"
175
+ else
176
+ sed -ri -e ' /uuid-dev/d' " $dir /Dockerfile"
177
+ fi
178
+ ;;
179
+ esac
180
+
168
181
case " $version /$v " in
169
182
# https://bugs.python.org/issue32598 (Python 3.7.0b1+)
170
183
# TL;DR: Python 3.7+ uses OpenSSL functionality which LibreSSL 2.6.x in Alpine 3.7 doesn't implement
You can’t perform that action at this time.
0 commit comments