meta.yaml 1.46 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
12
    - libpng
    - libjpeg-turbo
13
14
15
16

  host:
    - python
    - setuptools
17
18
    {{ environ.get('CONDA_PYTORCH_BUILD_CONSTRAINT') }}
    {{ environ.get('CONDA_CUDATOOLKIT_CONSTRAINT') }}
peterjc123's avatar
peterjc123 committed
19
    {{ environ.get('CONDA_CPUONLY_FEATURE') }}
20
21
22

  run:
    - python
23
24
25
26
    - libpng
    - libjpeg-turbo
    # Pillow introduces unwanted conflicts with libjpeg-turbo, as it depends on jpeg
    # The fix depends on https://github.com/conda-forge/conda-forge.github.io/issues/673
27
28
    - pillow >=4.1.1
    - numpy >=1.11
29
30
    {{ environ.get('CONDA_PYTORCH_CONSTRAINT') }}
    {{ environ.get('CONDA_CUDATOOLKIT_CONSTRAINT') }}
31
32

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

test:
  imports:
    - torchvision
    - torchvision.datasets
    - torchvision.transforms
  source_files:
    - test
  requires:
    - pytest
    - scipy
53
54
    - av
    - ca-certificates
55
    {{ environ.get('CONDA_TYPING_CONSTRAINT') }}
56
57
58
59
60
61
62


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