@@ -212,20 +212,24 @@ for d in Modules Objects Parser Programs Python; do
212
212
done
213
213
214
214
# Also copy extension variant metadata files.
215
- cp -av Modules/VARIANT-* .data ${ROOT} /out/python/build/Modules/
215
+ if [ " ${PYBUILD_PLATFORM} " != " macos" ]; then
216
+ cp -av Modules/VARIANT-* .data ${ROOT} /out/python/build/Modules/
217
+ fi
216
218
217
219
# The object files need to be linked against library dependencies. So copy
218
220
# library files as well.
219
221
mkdir ${ROOT} /out/python/build/lib
220
- cp -av ${ROOT } /deps/lib/* .a ${ROOT} /out/python/build/lib/
221
- cp -av ${ROOT } /deps/libedit/lib/* .a ${ROOT} /out/python/build/lib/
222
+ cp -av ${TOOLS_PATH } /deps/lib/* .a ${ROOT} /out/python/build/lib/
223
+ cp -av ${TOOLS_PATH } /deps/libedit/lib/* .a ${ROOT} /out/python/build/lib/
222
224
223
225
# And prune libraries we never reference.
224
- rm ${ROOT} /out/python/build/lib/{libdb-6.0,libxcb-* ,libX11-xcb}.a
226
+ rm -f ${ROOT} /out/python/build/lib/{libdb-6.0,libxcb-* ,libX11-xcb}.a
225
227
226
228
# Copy tcl/tk/tix resources needed by tkinter.
227
- mkdir ${ROOT} /out/python/install/lib/tcl
228
- cp -av ${TOOLS_PATH} /deps/lib/{tcl8,tcl8.6,thread2.8.4,Tix8.4.3,tk8.6}/ ${ROOT} /out/python/install/lib/tcl/
229
+ if [ " ${PYBUILD_PLATFORM} " != " macos" ]; then
230
+ mkdir ${ROOT} /out/python/install/lib/tcl
231
+ cp -av ${TOOLS_PATH} /deps/lib/{tcl8,tcl8.6,thread2.8.4,Tix8.4.3,tk8.6}/ ${ROOT} /out/python/install/lib/tcl/
232
+ fi
229
233
230
234
# config.c defines _PyImport_Inittab and extern references to modules, which
231
235
# downstream consumers may want to strip. We bundle config.c and config.c.in so
0 commit comments