Skip to content

Commit 3715773

Browse files
authored
Merge pull request docker-library#274 from JayH5/py3.6-alpine3.7-nis
3.6/alpine3.7: Build nis module now that 3.6.5 is patched
2 parents 33b16b4 + e48c971 commit 3715773

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

3.6/alpine3.7/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ RUN set -ex \
4646
gdbm-dev \
4747
libc-dev \
4848
libffi-dev \
49+
libnsl-dev \
50+
libtirpc-dev \
4951
linux-headers \
5052
make \
5153
ncurses-dev \

update.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,7 @@ for version in "${versions[@]}"; do
160160

161161
# Libraries to build the nis module available in Alpine 3.7, but also require this patch:
162162
# https://bugs.python.org/issue32521
163-
# TODO: Remove Python version check once 2.7 and 3.6 have the patch
164-
if [[ "$variant" == alpine* ]] && [[ "$variant" != alpine3.7 || "$version" != 3.7* ]]; then
163+
if [[ "$variant" == alpine* ]] && [[ "$variant" != alpine3.7 ]]; then
165164
sed -ri -e '/libnsl-dev/d' -e '/libtirpc-dev/d' "$dir/Dockerfile"
166165
fi
167166

0 commit comments

Comments
 (0)