Skip to content

Commit 080b345

Browse files
NicolasHugfacebook-github-bot
authored andcommitted
[fbsync] Pin JPEG version to resolve the size_t issue on windows (#3787)
Reviewed By: datumbox Differential Revision: D28473328 fbshipit-source-id: 8ef20cd016b5fd0ac0441358d43db7009f01fa18
1 parent bba6474 commit 080b345

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

.circleci/unittest/linux/scripts/environment.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ dependencies:
99
- codecov
1010
- pip
1111
- libpng
12-
- jpeg
12+
# NOTE: Pinned to fix issues with size_t on Windows
13+
- jpeg <=9b
1314
- ca-certificates
1415
- pip:
1516
- future

.circleci/unittest/windows/scripts/environment.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ dependencies:
99
- codecov
1010
- pip
1111
- libpng
12-
- jpeg
12+
# NOTE: Pinned to fix issues with size_t on Windows
13+
- jpeg <=9b
1314
- ca-certificates
1415
- pip:
1516
- future

packaging/torchvision/meta.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ requirements:
99
build:
1010
- {{ compiler('c') }} # [win]
1111
- libpng
12-
- jpeg
12+
# NOTE: Pinned to fix issues with size_t on Windows
13+
- jpeg <=9b
1314
# NOTE: The only ffmpeg version that we build is actually 4.2
1415
- ffmpeg >=4.2 # [not win]
1516

@@ -24,7 +25,8 @@ requirements:
2425
- python
2526
- libpng
2627
- ffmpeg >=4.2 # [not win]
27-
- jpeg
28+
# NOTE: Pinned to fix issues with size_t on Windows
29+
- jpeg <=9b
2830
- pillow >=5.3.0
2931
{{ environ.get('CONDA_PYTORCH_CONSTRAINT') }}
3032
{{ environ.get('CONDA_CUDATOOLKIT_CONSTRAINT') }}
@@ -51,7 +53,8 @@ test:
5153
- pytest
5254
- scipy
5355
- av >=8.0.1
54-
- jpeg
56+
# NOTE: Pinned to fix issues with size_t on Windows
57+
- jpeg <=9b
5558
- ca-certificates
5659

5760

0 commit comments

Comments
 (0)