mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2026-05-11 09:06:58 +08:00
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:
parent
0b5e64fafe
commit
6557c53ccc
@ -23,7 +23,7 @@ echo "TorchCodec not found. Installing from source..."
|
|||||||
install_system_deps() {
|
install_system_deps() {
|
||||||
if command -v apt-get &> /dev/null; then
|
if command -v apt-get &> /dev/null; then
|
||||||
echo "Installing system dependencies..."
|
echo "Installing system dependencies..."
|
||||||
apt-get update && apt-get install -y \
|
apt-get update && apt-get install -y --no-install-recommends \
|
||||||
pkg-config \
|
pkg-config \
|
||||||
ffmpeg libavcodec-dev libavformat-dev libavutil-dev \
|
ffmpeg libavcodec-dev libavformat-dev libavutil-dev \
|
||||||
libswscale-dev libavdevice-dev libavfilter-dev libswresample-dev
|
libswscale-dev libavdevice-dev libavfilter-dev libswresample-dev
|
||||||
@ -68,8 +68,7 @@ trap cleanup EXIT
|
|||||||
# Clone and build
|
# Clone and build
|
||||||
cd "$BUILD_DIR"
|
cd "$BUILD_DIR"
|
||||||
echo "Cloning TorchCodec from $TORCHCODEC_REPO (branch: $TORCHCODEC_BRANCH)..."
|
echo "Cloning TorchCodec from $TORCHCODEC_REPO (branch: $TORCHCODEC_BRANCH)..."
|
||||||
git clone --depth 1 --branch "$TORCHCODEC_BRANCH" "$TORCHCODEC_REPO" torchcodec || \
|
git clone --depth 1 --branch "$TORCHCODEC_BRANCH" "$TORCHCODEC_REPO" torchcodec
|
||||||
git clone --depth 1 "$TORCHCODEC_REPO" torchcodec
|
|
||||||
|
|
||||||
cd torchcodec
|
cd torchcodec
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user