Skip to content

Commit 9fb81f1

Browse files
committed
downloads: upgrade CPython 3.9.9 to 3.9.10 and 3.10.0 to 3.10.2
This involved refreshing a patch related to MULTIARCH. It also entailed changing a shlwapi.dll annotation on Windows.
1 parent d57c49f commit 9fb81f1

File tree

3 files changed

+45
-24
lines changed

3 files changed

+45
-24
lines changed

cpython-unix/build-cpython.sh

Lines changed: 36 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -67,24 +67,35 @@ if [ "${BUILD_TRIPLE}" != "${TARGET_TRIPLE}" ]; then
6767

6868
# Same patch as below. See comment there.
6969
if [ "${CC}" = "clang" ]; then
70-
if [ "${PYTHON_MAJMIN_VERSION}" = "3.9" ]; then
70+
if [ "${PYTHON_MAJMIN_VERSION}" != "3.8" ]; then
7171
patch -p1 <<"EOF"
7272
diff --git a/configure b/configure
73-
index 33ecb16f71..7f21822d97 100755
73+
index d078887b2f..78654eed29 100755
7474
--- a/configure
7575
+++ b/configure
76-
@@ -5354,10 +5354,7 @@ $as_echo "none" >&6; }
76+
@@ -5366,20 +5366,7 @@ $as_echo "none" >&6; }
7777
fi
7878
rm -f conftest.c conftest.out
7979
80-
-if test x$PLATFORM_TRIPLET != xdarwin; then
81-
- MULTIARCH=$($CC --print-multiarch 2>/dev/null)
82-
-fi
80+
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch" >&5
81+
-$as_echo_n "checking for multiarch... " >&6; }
82+
-case $ac_sys_system in #(
83+
- Darwin*) :
84+
- MULTIARCH="" ;; #(
85+
- FreeBSD*) :
86+
- MULTIARCH="" ;; #(
87+
- *) :
88+
- MULTIARCH=$($CC --print-multiarch 2>/dev/null)
89+
- ;;
90+
-esac
8391
-
92+
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MULTIARCH" >&5
93+
-$as_echo "$MULTIARCH" >&6; }
8494
+MULTIARCH=
8595
8696
if test x$PLATFORM_TRIPLET != x && test x$MULTIARCH != x; then
8797
if test x$PLATFORM_TRIPLET != x$MULTIARCH; then
98+
8899
EOF
89100
else
90101
patch -p1 <<"EOF"
@@ -325,24 +336,35 @@ fi
325336
# configure. This is reported as https://bugs.python.org/issue45405. We nerf the
326337
# check since we know what we're doing.
327338
if [ "${CC}" = "clang" ]; then
328-
if [ "${PYTHON_MAJMIN_VERSION}" = "3.9" ]; then
339+
if [ "${PYTHON_MAJMIN_VERSION}" != "3.8" ]; then
329340
patch -p1 <<"EOF"
330341
diff --git a/configure b/configure
331-
index 33ecb16f71..7f21822d97 100755
342+
index d078887b2f..78654eed29 100755
332343
--- a/configure
333344
+++ b/configure
334-
@@ -5354,10 +5354,7 @@ $as_echo "none" >&6; }
345+
@@ -5366,20 +5366,7 @@ $as_echo "none" >&6; }
335346
fi
336347
rm -f conftest.c conftest.out
337-
338-
-if test x$PLATFORM_TRIPLET != xdarwin; then
339-
- MULTIARCH=$($CC --print-multiarch 2>/dev/null)
340-
-fi
348+
349+
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch" >&5
350+
-$as_echo_n "checking for multiarch... " >&6; }
351+
-case $ac_sys_system in #(
352+
- Darwin*) :
353+
- MULTIARCH="" ;; #(
354+
- FreeBSD*) :
355+
- MULTIARCH="" ;; #(
356+
- *) :
357+
- MULTIARCH=$($CC --print-multiarch 2>/dev/null)
358+
- ;;
359+
-esac
341360
-
361+
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MULTIARCH" >&5
362+
-$as_echo "$MULTIARCH" >&6; }
342363
+MULTIARCH=
343-
364+
344365
if test x$PLATFORM_TRIPLET != x && test x$MULTIARCH != x; then
345366
if test x$PLATFORM_TRIPLET != x$MULTIARCH; then
367+
346368
EOF
347369
else
348370
patch -p1 <<"EOF"

cpython-windows/build.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1880,7 +1880,7 @@ def find_additional_dependencies(project: pathlib.Path):
18801880
res["core"]["links"].append({"name": "pathcch", "system": True})
18811881

18821882
# shlwapi was dropped from 3.9.9+.
1883-
if python_majmin != "3.9":
1883+
if python_majmin == "3.8":
18841884
res["core"]["links"].append({"name": "shlwapi", "system": True})
18851885

18861886
# Copy files for extensions into their own directories.

pythonbuild/downloads.py

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -62,20 +62,19 @@
6262
"python_tag": "cp38",
6363
},
6464
"cpython-3.9": {
65-
"url": "https://www.python.org/ftp/python/3.9.9/Python-3.9.9.tar.xz",
66-
"size": 19144372,
67-
"sha256": "06828c04a573c073a4e51c4292a27c1be4ae26621c3edc7cf9318418ce3b6d27",
68-
"version": "3.9.9",
65+
"url": "https://www.python.org/ftp/python/3.9.10/Python-3.9.10.tar.xz",
66+
"size": 19154136,
67+
"sha256": "0a8fbfb5287ebc3a13e9baf3d54e08fa06778ffeccf6311aef821bb3a6586cc8",
68+
"version": "3.9.10",
6969
"licenses": ["Python-2.0", "CNRI-Python"],
7070
"license_file": "LICENSE.cpython.txt",
7171
"python_tag": "cp39",
7272
},
73-
# TODO remember to update windows shlwapi link annotation when we upgrade to 3.10.1.
7473
"cpython-3.10": {
75-
"url": "https://www.python.org/ftp/python/3.10.0/Python-3.10.0.tar.xz",
76-
"size": 18726176,
77-
"sha256": "5a99f8e7a6a11a7b98b4e75e0d1303d3832cada5534068f69c7b6222a7b1b002",
78-
"version": "3.10.0",
74+
"url": "https://www.python.org/ftp/python/3.10.2/Python-3.10.2.tar.xz",
75+
"size": 18780936,
76+
"sha256": "17de3ac7da9f2519aa9d64378c603a73a0e9ad58dffa8812e45160c086de64c7",
77+
"version": "3.10.2",
7978
"licenses": ["Python-2.0", "CNRI-Python"],
8079
"license_file": "LICENSE.cpython.txt",
8180
"python_tag": "cp310",

0 commit comments

Comments
 (0)