File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -70,12 +70,14 @@ cat Makefile.extra
70
70
pushd Python-${PYTHON_VERSION}
71
71
72
72
# configure doesn't support cross-compiling on Apple. Teach it.
73
- if [ " ${PYTHON_MAJMIN_VERSION} " = " 3.13" ]; then
74
- patch -p1 -i ${ROOT} /patch-apple-cross-3.13.patch
75
- elif [ " ${PYTHON_MAJMIN_VERSION} " = " 3.12" ]; then
76
- patch -p1 -i ${ROOT} /patch-apple-cross-3.12.patch
77
- else
78
- patch -p1 -i ${ROOT} /patch-apple-cross.patch
73
+ if [ " ${PYBUILD_PLATFORM} " = " macos" ]; then
74
+ if [ " ${PYTHON_MAJMIN_VERSION} " = " 3.13" ]; then
75
+ patch -p1 -i ${ROOT} /patch-apple-cross-3.13.patch
76
+ elif [ " ${PYTHON_MAJMIN_VERSION} " = " 3.12" ]; then
77
+ patch -p1 -i ${ROOT} /patch-apple-cross-3.12.patch
78
+ else
79
+ patch -p1 -i ${ROOT} /patch-apple-cross.patch
80
+ fi
79
81
fi
80
82
81
83
# This patch is slightly different on Python 3.10+.
You can’t perform that action at this time.
0 commit comments