meta.yaml 1.47 KB
Newer Older
1
package:
2
3
  name: torchvision
  version: "{{ environ.get('BUILD_VERSION') }}"
4
5

source:
6
 path: "{{ environ.get('SOURCE_ROOT_DIR') }}"
7
8
9
10

requirements:
  build:
    - {{ compiler('c') }} # [win]
11
    - libpng
12
13
14
    - jpeg <=9b
    # NOTE: The only ffmpeg version that we build is actually 4.2
    - ffmpeg >=4.2  # [not win]
15
16
17
18

  host:
    - python
    - setuptools
19
20
    - numpy >=1.20 # [py>=39]
    - numpy >=1.11 # [py!=39]
21
22
    {{ environ.get('CONDA_PYTORCH_BUILD_CONSTRAINT') }}
    {{ environ.get('CONDA_CUDATOOLKIT_CONSTRAINT') }}
peterjc123's avatar
peterjc123 committed
23
    {{ environ.get('CONDA_CPUONLY_FEATURE') }}
24
25
26

  run:
    - python
27
    - libpng
28
29
    - ffmpeg >=4.2  # [not win]
    - jpeg <=9b
30
    - pillow >=4.1.1
31
32
    - numpy >=1.20 # [py>=39]
    - numpy >=1.11 # [py!=39]
33
34
    {{ environ.get('CONDA_PYTORCH_CONSTRAINT') }}
    {{ environ.get('CONDA_CUDATOOLKIT_CONSTRAINT') }}
35
36

build:
37
  string: py{{py}}_{{ environ['CU_VERSION'] }}
peterjc123's avatar
peterjc123 committed
38
  script: python setup.py install --single-version-externally-managed --record=record.txt
39
  script_env:
Edward Z. Yang's avatar
Edward Z. Yang committed
40
41
42
    - CUDA_HOME
    - FORCE_CUDA
    - NVCC_FLAGS
43
    - BUILD_VERSION
44
  features:
peterjc123's avatar
peterjc123 committed
45
    {{ environ.get('CONDA_CPUONLY_FEATURE') }}
46
47
48
49
50
51
52
53
54
55
56

test:
  imports:
    - torchvision
    - torchvision.datasets
    - torchvision.transforms
  source_files:
    - test
  requires:
    - pytest
    - scipy
57
58
    - av >=8.0.1
    - jpeg <=9b
59
    - ca-certificates
60
61
62
63
64
65
66


about:
  home: https://github.com/pytorch/vision
  license: BSD
  license_file: LICENSE
  summary: 'image and video datasets and models for torch deep learning'