Skip to content

Commit feea93e

Browse files
committed
unix: copy tcl directories separately
macOS `cp` doesn't behave the same as Linux and was putting the files in the wrong directory. With this, I am able to run a tcl/tk/tix Python application with the build distribution!
1 parent c2f20b7 commit feea93e

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
@@ -243,7 +243,9 @@ rm -f ${ROOT}/out/python/build/lib/{libdb-6.0,libxcb-*,libX11-xcb}.a
243243

244244
# Copy tcl/tk/tix resources needed by tkinter.
245245
mkdir ${ROOT}/out/python/install/lib/tcl
246-
cp -av ${TOOLS_PATH}/deps/lib/{tcl8,tcl8.6,thread2.8.4,Tix8.4.3,tk8.6}/ ${ROOT}/out/python/install/lib/tcl/
246+
for source in ${TOOLS_PATH}/deps/lib/{tcl8,tcl8.6,thread2.8.4,Tix8.4.3,tk8.6}; do
247+
cp -av $source ${ROOT}/out/python/install/lib/tcl/
248+
done
247249

248250
# config.c defines _PyImport_Inittab and extern references to modules, which
249251
# downstream consumers may want to strip. We bundle config.c and config.c.in so

0 commit comments

Comments
 (0)