forked from pytorch/torchcodec
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
794104a
commit ddd32b1
Showing
2 changed files
with
137 additions
and
120 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,29 @@ | ||
#!/bin/bash | ||
|
||
echo "LS" | ||
ls | ||
echo "LS dist" | ||
ls dist | ||
source .github/scripts/helpers.sh | ||
|
||
wheel_path=$(pwd)/$(find dist -type f -name "*.whl") | ||
echo "Wheel content:" | ||
unzip -l $wheel_path | ||
|
||
echo "MVVVV" | ||
mv dist/*linux_x86_64*.whl $(echo dist/*linux_x86_64*.whl | sed 's/linux_x86_64/manylinux_2_17_x86_64.manylinux2014_x86_64/') | ||
for ffmpeg_major_version in 4 5 6 7; do | ||
assert_in_wheel $wheel_path torchcodec/libtorchcodec${ffmpeg_major_version}.so | ||
done | ||
assert_not_in_wheel $wheel_path libtorchcodec.so | ||
|
||
for ffmpeg_so in libavcodec.so libavfilter.so libavformat.so libavutil.so libavdevice.so ; do | ||
assert_not_in_wheel $wheel_path $ffmpeg_so | ||
done | ||
|
||
assert_not_in_wheel $wheel_path "^test" | ||
assert_not_in_wheel $wheel_path "^doc" | ||
assert_not_in_wheel $wheel_path "^benchmarks" | ||
assert_not_in_wheel $wheel_path "^packaging" | ||
|
||
echo "LS dist" | ||
ls dist | ||
# See invoked python script below for details about this check. | ||
extracted_wheel_dir=$(mktemp -d) | ||
unzip -q $wheel_path -d $extracted_wheel_dir | ||
symbols_matches=$(find $extracted_wheel_dir | grep ".so$" | xargs objdump --syms | grep GLIBCXX_3.4.) | ||
python .github/scripts/check_glibcxx.py "$symbols_matches" | ||
|
||
mv dist/*linux_x86_64*.whl $(echo dist/*linux_x86_64*.whl | sed 's/linux_x86_64/manylinux_2_17_x86_64.manylinux2014_x86_64/') |