Skip to content

Commit e0b5803

Browse files
committed
fixup! Use the symlink-resolved location of Python in getpath on 3.14+
1 parent 7e51c1e commit e0b5803

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cpython-unix/build-cpython.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -629,7 +629,9 @@ if [ -n "${CROSS_COMPILING}" ]; then
629629
# TODO: There are probably more of these, see #599.
630630
fi
631631

632-
# TODO description
632+
# Adjust the Python startup logic (getpath.py) to properly locate the installation, even when
633+
# invoked through a symlink or through an incorrect argv[0]. Because this Python is relocatable, we
634+
# don't get to rely on the fallback to the compiled-in installation prefix.
633635
if [[ -n "${PYTHON_MEETS_MINIMUM_VERSION_3_14}" ]]; then
634636
patch -p1 -i "${ROOT}/patch-python-getpath-3.14.patch"
635637
fi

0 commit comments

Comments
 (0)