Skip to content

Commit 4911d21

Browse files
committed
Add patch for stable uuid.getnode
1 parent cddb9c1 commit 4911d21

File tree

2 files changed

+715
-0
lines changed

2 files changed

+715
-0
lines changed

cpython-unix/build-cpython.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,13 @@ if [ -n "${CROSS_COMPILING}" ]; then
7676
fi
7777
fi
7878

79+
# `uuid.getnode()` is not stable on our libuuid, CPython should fallback to another method
80+
# Cherry-pick https://github.com/python/cpython/pull/134704 until it is released
81+
# We could backport this to more versions too, it won't be done by the upstream
82+
if [[ -n "${PYTHON_MEETS_MINIMUM_VERSION_3_13}" && -n "${PYTHON_MEETS_MAXIMUM_VERSION_3_14}"]]; then
83+
patch -p1 -i ${ROOT}/patch-uuid-getnode-stable-3.13.patch
84+
fi
85+
7986
# This patch is slightly different on Python 3.10+.
8087
if [ -n "${PYTHON_MEETS_MINIMUM_VERSION_3_10}" ]; then
8188
patch -p1 -i ${ROOT}/patch-xopen-source-ios.patch

0 commit comments

Comments
 (0)