Skip to content

Commit 3fb8f74

Browse files
committed
fixup! Build libtcl
1 parent 046fa63 commit 3fb8f74

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

cpython-unix/build-cpython.sh

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1260,11 +1260,13 @@ if [ -d "${TOOLS_PATH}/deps/lib/tcl8" ]; then
12601260
cp -av $source ${ROOT}/out/python/install/lib/
12611261
done
12621262

1263-
if [[ "${PYBUILD_PLATFORM}" == macos* ]]; then
1264-
cp -av ${TOOLS_PATH}/deps/lib/lib*.dylib ${ROOT}/out/python/install/lib/
1265-
else
1266-
cp -av ${TOOLS_PATH}/deps/lib/lib*.so ${ROOT}/out/python/install/lib/
1267-
fi
1263+
(
1264+
shopt -s nullglob
1265+
dylibs=(${TOOLS_PATH}/deps/lib/lib*.dylib ${TOOLS_PATH}/deps/lib/lib*.so)
1266+
if [ "${#dylibs[@]}" -gt 0 ]; then
1267+
cp -av "${dylibs[@]}" ${ROOT}/out/python/install/lib/
1268+
fi
1269+
)
12681270
fi
12691271

12701272
# Copy the terminfo database if present.

0 commit comments

Comments
 (0)