We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 046fa63 commit 3fb8f74Copy full SHA for 3fb8f74
cpython-unix/build-cpython.sh
@@ -1260,11 +1260,13 @@ if [ -d "${TOOLS_PATH}/deps/lib/tcl8" ]; then
1260
cp -av $source ${ROOT}/out/python/install/lib/
1261
done
1262
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
+ (
+ shopt -s nullglob
+ dylibs=(${TOOLS_PATH}/deps/lib/lib*.dylib ${TOOLS_PATH}/deps/lib/lib*.so)
+ if [ "${#dylibs[@]}" -gt 0 ]; then
+ cp -av "${dylibs[@]}" ${ROOT}/out/python/install/lib/
1268
+ fi
1269
+ )
1270
fi
1271
1272
# Copy the terminfo database if present.
0 commit comments