remove the fallback to let script fail if branch not fetched and prevent installation of packages that are not strictly necessary

Signed-off-by: Andreas Karatzas <akaratza@amd.com>
This commit is contained in:
Andreas Karatzas 2025-12-24 22:42:11 +00:00
parent 0b5e64fafe
commit 6557c53ccc
No known key found for this signature in database
GPG Key ID: 74A33CBB22F03519

View File

@ -23,7 +23,7 @@ echo "TorchCodec not found. Installing from source..."
install_system_deps() {
if command -v apt-get &> /dev/null; then
echo "Installing system dependencies..."
apt-get update && apt-get install -y \
apt-get update && apt-get install -y --no-install-recommends \
pkg-config \
ffmpeg libavcodec-dev libavformat-dev libavutil-dev \
libswscale-dev libavdevice-dev libavfilter-dev libswresample-dev
@ -68,8 +68,7 @@ trap cleanup EXIT
# Clone and build
cd "$BUILD_DIR"
echo "Cloning TorchCodec from $TORCHCODEC_REPO (branch: $TORCHCODEC_BRANCH)..."
git clone --depth 1 --branch "$TORCHCODEC_BRANCH" "$TORCHCODEC_REPO" torchcodec || \
git clone --depth 1 "$TORCHCODEC_REPO" torchcodec
git clone --depth 1 --branch "$TORCHCODEC_BRANCH" "$TORCHCODEC_REPO" torchcodec
cd torchcodec