@@ -165,19 +165,6 @@ 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-
181168 case " $version /$v " in
182169 # https://bugs.python.org/issue32598 (Python 3.7.0b1+)
183170 # 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
187174 ;;& # (3.5* /alpine* needs to match the next block too)
188175 # Libraries to build the nis module only available in Alpine 3.7+.
189176 # 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)
191178 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"
192185 ;;
186+ 3.[4-6]* )
187+ sed -ri -e ' /uuid-dev/d' " $dir /Dockerfile"
188+ ;;& # (other Debian variants need to match later blocks)
193189 3.4/stretch* )
194190 sed -ri -e ' s/libssl-dev/libssl1.0-dev/g' " $dir /Dockerfile"
195191 ;;
0 commit comments