Skip to content

Commit dca0bac

Browse files
authored
Merge pull request #1015 from infosiftr/rm-3.14-s390x-alpine
Remove s390x from Alpine variants on 3.14(+)
2 parents 0bd9769 + 46594ed commit dca0bac

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

‎generate-stackbrew-library.sh‎

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -136,22 +136,24 @@ for version; do
136136
;
137137
esac
138138

139+
# https://github.com/docker-library/python/pull/931 (riscv64 builds on 3.11+ take way too long 😞)
140+
case"$version"in
141+
3.9 | 3.10) ;
142+
*) variantArches="$(sed <<<" $variantArches " -e 's/ riscv64 / /g')" ;
143+
esac
144+
145+
# https://github.com/python/cpython/issues/93619 (Linking error when building 3.11 beta on mips64le) + https://peps.python.org/pep-0011/ (mips is not even tier 3)
139146
case"$version"in
140147
3.9) ;
141-
*)
142-
if [ "$version"!='3.10' ];then
143-
# https://github.com/docker-library/python/pull/931
144-
variantArches="$(sed <<<" $variantArches " -e 's/ riscv64 / /g')"
145-
fi
146-
# https://github.com/python/cpython/issues/93619 + https://peps.python.org/pep-0011/
147-
variantArches="$(sed <<<" $variantArches " -e 's/ mips64le / /g')"
148-
;
148+
*) variantArches="$(sed <<<" $variantArches " -e 's/ mips64le / /g')" ;
149149
esac
150150

151-
if [ "$fullVersion"='3.14.0a1' ];then
152-
# https://github.com/python/cpython/issues/125535 - 3.14.0a1 fails to build on i386
153-
# https://github.com/python/cpython/pull/125244 (already fixed for the next release)
154-
variantArches="$(sed <<<" $variantArches " -e 's/ i386 / /g')"
151+
# https://github.com/docker-library/python/issues/1014 (ensurepip failing on s390x 3.14.0a6 Alpine images)
152+
if [[ "$variant"== alpine* ]];then
153+
case"$version"in
154+
3.9 | 3.10 | 3.11 | 3.12 | 3.13) ;
155+
*) variantArches="$(sed <<<" $variantArches " -e 's/ s390x / /g')" ;
156+
esac
155157
fi
156158

157159
sharedTags=()

0 commit comments

Comments
(0)