@@ -165,19 +165,6 @@ 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
-
181
168
case " $version /$v " in
182
169
# https://bugs.python.org/issue32598 (Python 3.7.0b1+)
183
170
# TL;DR: Python 3.7+ uses OpenSSL functionality which LibreSSL 2.6.x in Alpine 3.7 doesn't implement
@@ -187,9 +174,18 @@ for version in "${versions[@]}"; do
187
174
;;& # (3.5* /alpine* needs to match the next block too)
188
175
# Libraries to build the nis module only available in Alpine 3.7+.
189
176
# Also require this patch https://bugs.python.org/issue32521 only available in Python 2.7, 3.6+.
190
- 3.4 * /alpine * | 3.5 * /alpine* | * /alpine3.6)
177
+ 3.[4-5] * /alpine* | * /alpine3.6)
191
178
sed -ri -e ' /libnsl-dev/d' -e ' /libtirpc-dev/d' " $dir /Dockerfile"
179
+ ;;& # (3.4* /alpine* and 3.5* /alpine* need to match the next block too)
180
+ # https://bugs.python.org/issue11063, https://bugs.python.org/issue20519 (Python 3.7.0+)
181
+ # A new native _uuid module improves uuid import time and avoids using ctypes.
182
+ # This requires the development libuuid headers.
183
+ 3.[4-6]* /alpine* )
184
+ sed -ri -e ' /util-linux-dev/d' " $dir /Dockerfile"
192
185
;;
186
+ 3.[4-6]* )
187
+ sed -ri -e ' /uuid-dev/d' " $dir /Dockerfile"
188
+ ;;& # (other Debian variants need to match later blocks)
193
189
3.4/stretch* )
194
190
sed -ri -e ' s/libssl-dev/libssl1.0-dev/g' " $dir /Dockerfile"
195
191
;;
0 commit comments