From 61bd547af1e26e5d1781a800391aa616df8de31f Mon Sep 17 00:00:00 2001 From: Andrey Talman Date: Tue, 30 Jul 2024 18:50:13 -0400 Subject: [PATCH] Restrict ffmpeg to 4.2+.X versions to resolve linux conda build failures (#8562) Co-authored-by: Nikita Shulga <2453524+malfet@users.noreply.github.com> --- packaging/torchvision/meta.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packaging/torchvision/meta.yaml b/packaging/torchvision/meta.yaml index ba4fee5a767..78ac930f8e5 100644 --- a/packaging/torchvision/meta.yaml +++ b/packaging/torchvision/meta.yaml @@ -11,13 +11,13 @@ requirements: - {{ compiler('c') }} # [win] - libpng - libjpeg-turbo - - ffmpeg >=4.2 # [linux] + - ffmpeg >=4.2.2, <5.0.0 # [linux] host: - python - setuptools - pytorch-mutex 1.0 {{ build_variant }} # [not osx ] - {{ environ.get('CONDA_PYTORCH_BUILD_CONSTRAINT') }} + {{ environ.get('CONDA_PYTORCH_BUILD_CONSTRAINT', 'pytorch') }} {{ environ.get('CONDA_CUDATOOLKIT_CONSTRAINT', '') }} run: @@ -26,11 +26,11 @@ requirements: - numpy >=1.23.5 # [py >= 311] - requests - libpng - - ffmpeg >=4.2 # [linux] + - ffmpeg >=4.2.2, <5.0.0 # [linux] - libjpeg-turbo - pillow >=5.3.0, !=8.3.* - pytorch-mutex 1.0 {{ build_variant }} # [not osx ] - {{ environ.get('CONDA_PYTORCH_CONSTRAINT') }} + {{ environ.get('CONDA_PYTORCH_CONSTRAINT', 'pytorch') }} {{ environ.get('CONDA_CUDATOOLKIT_CONSTRAINT', '') }} {% if build_variant == 'cpu' %}