Skip to content

Commit bb655ed

Browse files
committed
.
1 parent 3358fa8 commit bb655ed

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

packaging/post_build_script.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,12 @@ wheel_path=$(pwd)/$(find dist -type f -name "*.whl")
66
echo "Wheel content:"
77
unzip -l $wheel_path
88

9-
for ffmpeg_major_version in 4 5 6 7; do
9+
ffmpeg_versions=(4 5 6 7)
10+
if [ "$ENABLE_CUDA" -eq 1 ]; then
11+
ffmpeg_versions=(5 6 7)
12+
fi
13+
14+
for ffmpeg_major_version in ${ffmepg_versions[@]}; do
1015
assert_in_wheel $wheel_path torchcodec/libtorchcodec${ffmpeg_major_version}.so
1116
done
1217
assert_not_in_wheel $wheel_path libtorchcodec.so

0 commit comments

Comments
 (0)