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 \
5959 tcl-dev \
6060 tk \
6161 tk-dev \
62+ util-linux-dev \
6263 xz-dev \
6364 zlib-dev \
6465# 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 \
5959 tcl-dev \
6060 tk \
6161 tk-dev \
62+ util-linux-dev \
6263 xz-dev \
6364 zlib-dev \
6465# 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 \
4040 libssl-dev \
4141 make \
4242 tk-dev \
43+ uuid-dev \
4344 wget \
4445 xz-utils \
4546 zlib1g-dev \
Original file line number Diff line number Diff line change @@ -55,6 +55,7 @@ RUN set -ex \
5555 tcl-dev \
5656 tk \
5757 tk-dev \
58+ util-linux-dev \
5859 xz-dev \
5960 zlib-dev \
6061# 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 \
3434 libssl-dev \
3535 make \
3636 tk-dev \
37+ uuid-dev \
3738 wget \
3839 xz-utils \
3940 zlib1g-dev \
Original file line number Diff line number Diff line change @@ -165,6 +165,19 @@ for version in "${versions[@]}"; do
165165 mv " $dir /Dockerfile.new" " $dir /Dockerfile"
166166 fi
167167
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+
168181 case " $version /$v " in
169182 # https://bugs.python.org/issue32598 (Python 3.7.0b1+)
170183 # 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