Skip to content

Commit c0b68ec

Browse files
zaniebCopilot
andauthored
Drop patch-apple-cross on 3.14+ (#887)
See #863 (comment) Closes #863 --------- Co-authored-by: Copilot <[email protected]> Co-authored-by: zanieb <[email protected]>
1 parent 4d17e22 commit c0b68ec

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

cpython-unix/build-cpython.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,11 @@ cat Makefile.extra
5959
pushd Python-${PYTHON_VERSION}
6060

6161
# configure doesn't support cross-compiling on Apple. Teach it.
62-
if [[ "${PYBUILD_PLATFORM}" = macos* ]]; then
63-
if [ -n "${PYTHON_MEETS_MINIMUM_VERSION_3_13}" ]; then
64-
patch -p1 -i ${ROOT}/patch-apple-cross-3.13.patch
65-
elif [ "${PYTHON_MAJMIN_VERSION}" = "3.12" ]; then
62+
if [[ "${PYBUILD_PLATFORM}" = macos* && -n "${PYTHON_MEETS_MAXIMUM_VERSION_3_13}" ]]; then
63+
if [ "${PYTHON_MAJMIN_VERSION}" = "3.12" ]; then
6664
patch -p1 -i ${ROOT}/patch-apple-cross-3.12.patch
65+
elif [ "${PYTHON_MAJMIN_VERSION}" = "3.13" ]; then
66+
patch -p1 -i ${ROOT}/patch-apple-cross-3.13.patch
6767
else
6868
patch -p1 -i ${ROOT}/patch-apple-cross.patch
6969
fi

0 commit comments

Comments
 (0)