meta.yaml 1.11 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
11
12
13
14

requirements:
  build:
    - {{ compiler('c') }} # [win]

  host:
    - python
    - setuptools
15
16
    {{ environ.get('CONDA_PYTORCH_BUILD_CONSTRAINT') }}
    {{ environ.get('CONDA_CUDATOOLKIT_CONSTRAINT') }}
17
18
19
20
21
22

  run:
    - python
    - pillow >=4.1.1
    - numpy >=1.11
    - six
23
24
    {{ environ.get('CONDA_PYTORCH_CONSTRAINT') }}
    {{ environ.get('CONDA_CUDATOOLKIT_CONSTRAINT') }}
25
26

build:
27
  string: py{{py}}_{{ environ['CU_VERSION'] }}
28
29
  script: python setup.py install --single-version-externally-managed --record=record.txt # [not win]
  script_env:
30
31
32
    - CU_VERSION
  features:
    {{ CONDA_CPUONLY_FEATURE }}
33
34
35
36
37
38
39
40
41
42
43

test:
  imports:
    - torchvision
    - torchvision.datasets
    - torchvision.transforms
  source_files:
    - test
  requires:
    - pytest
    - scipy
44
45
46
    - mock
    - av
    - ca-certificates
47
48
49
50
51
52
53
54
55
  commands:
    pytest .


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