@@ -23,15 +23,13 @@ case $(uname) in
2323esac
2424
2525echo ' ::group::Create build environment'
26- # See https://github.com/pytorch/vision/issues/7296 for ffmpeg
2726conda create \
2827 --name ci \
2928 --quiet --yes \
3029 python=" ${PYTHON_VERSION} " pip \
3130 ninja cmake \
3231 libpng \
33- libwebp \
34- ' ffmpeg<4.3'
32+ libwebp
3533conda activate ci
3634conda install --quiet --yes libjpeg-turbo -c pytorch
3735pip install --progress-bar=off --upgrade setuptools==72.1.0
@@ -80,22 +78,8 @@ if [[ $GPU_ARCH_TYPE == 'cuda' ]]; then
8078fi
8179echo ' ::endgroup::'
8280
83- echo ' ::group::Install third party dependencies prior to TorchVision install'
84- # Installing with `easy_install`, e.g. `python setup.py install` or `python setup.py develop`, has some quirks when
85- # when pulling in third-party dependencies. For example:
86- # - On Windows, we often hit an SSL error although `pip` can install just fine.
87- # - It happily pulls in pre-releases, which can lead to more problems down the line.
88- # `pip` does not unless explicitly told to do so.
89- # Thus, we use `easy_install` to extract the third-party dependencies here and install them upfront with `pip`.
90- python setup.py egg_info
91- # The requires.txt cannot be used with `pip install -r` directly. The requirements are listed at the top and the
92- # optional dependencies come in non-standard syntax after a blank line. Thus, we just extract the header.
93- sed -e ' /^$/,$d' * .egg-info/requires.txt | tee requirements.txt
94- pip install --progress-bar=off -r requirements.txt
95- echo ' ::endgroup::'
96-
9781echo ' ::group::Install TorchVision'
98- python setup.py develop
82+ pip install -e . -v --no-build-isolation
9983echo ' ::endgroup::'
10084
10185echo ' ::group::Install torchvision-extra-decoders'
0 commit comments