Skip to content

Commit

Permalink
Pin JPEG version to resolve the size_t issue on windows (pytorch#3787)
Browse files Browse the repository at this point in the history
  • Loading branch information
datumbox committed May 7, 2021
1 parent a78d0d8 commit 851b623
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .circleci/unittest/linux/scripts/environment.yml
Expand Up @@ -9,7 +9,8 @@ dependencies:
- codecov
- pip
- libpng
- jpeg
# NOTE: Pinned to fix issues with size_t on Windows
- jpeg <=9b
- ca-certificates
- pip:
- future
Expand Down
3 changes: 2 additions & 1 deletion .circleci/unittest/windows/scripts/environment.yml
Expand Up @@ -9,7 +9,8 @@ dependencies:
- codecov
- pip
- libpng
- jpeg
# NOTE: Pinned to fix issues with size_t on Windows
- jpeg <=9b
- ca-certificates
- pip:
- future
Expand Down
9 changes: 6 additions & 3 deletions packaging/torchvision/meta.yaml
Expand Up @@ -9,7 +9,8 @@ requirements:
build:
- {{ compiler('c') }} # [win]
- libpng
- jpeg
# NOTE: Pinned to fix issues with size_t on Windows
- jpeg <=9b
# NOTE: The only ffmpeg version that we build is actually 4.2
- ffmpeg >=4.2 # [not win]

Expand All @@ -24,7 +25,8 @@ requirements:
- python
- libpng
- ffmpeg >=4.2 # [not win]
- jpeg
# NOTE: Pinned to fix issues with size_t on Windows
- jpeg <=9b
- pillow >=5.3.0
{{ environ.get('CONDA_PYTORCH_CONSTRAINT') }}
{{ environ.get('CONDA_CUDATOOLKIT_CONSTRAINT') }}
Expand All @@ -51,7 +53,8 @@ test:
- pytest
- scipy
- av >=8.0.1
- jpeg
# NOTE: Pinned to fix issues with size_t on Windows
- jpeg <=9b
- ca-certificates


Expand Down

0 comments on commit 851b623

Please sign in to comment.