Skip to content

Commit

Permalink
Fix dependencies check
Browse files Browse the repository at this point in the history
Signed-off-by: Vladimir Bataev <[email protected]>
  • Loading branch information
artbataev committed Dec 12, 2023
1 parent 5bc38d6 commit 67b2b50
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion scripts/installers/install_torchaudio_latest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,18 @@ EOM

echo "$INFO_MESSAGE"

for lib in libavdevice ffmpeg sox; do
for lib in libavdevice sox; do
if ! grep -q ${lib} <<< "$(ldconfig -p)"; then
echo "ERROR: ${lib} not found. Install dependencies before running the script: '${DEPENDENCIES_INSTALL_CMD}'"
exit 1
fi
done

if ! command -v ffmpeg &> /dev/null; then
echo "ERROR: ffmpeg not found. Install dependencies before running the script: '${DEPENDENCIES_INSTALL_CMD}'"
exit 1
fi

TORCHAUDIO_REPO=https://github.com/pytorch/audio
# expected LATEST_RELEASE=release/*.**
LATEST_RELEASE=$(git -c 'versionsort.suffix=-' \
Expand Down

0 comments on commit 67b2b50

Please sign in to comment.