"projects/Couplets/readme.md" did not exist on "478602ba59c0bfe7ab9a094b9f1b7b33cfeecba4"
meta.yaml 1.67 KB
Newer Older
1
{% set build_variant = environ.get('CONDA_BUILD_VARIANT', 'cpu') %}
2
package:
3
  name: torchaudio
4
  version: "{{ environ.get('BUILD_VERSION', '0.0.0') }}"
5
6

source:
7
  path: "{{ environ.get('SOURCE_ROOT_DIR', '../..') }}"
8
9
10
11
12
13
14
15
16

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

  host:
    - python
    - setuptools
17
    - pkg-config  # [not win]
moto's avatar
moto committed
18
19
    - cmake
    - ninja
Eli Uriegas's avatar
Eli Uriegas committed
20
    - defaults::numpy >=1.11
21
    - pytorch-mutex 1.0 {{ build_variant }}  # [not osx ]
Nikita Shulga's avatar
Nikita Shulga committed
22
23
    {{ environ.get('CONDA_PYTORCH_BUILD_CONSTRAINT', 'pytorch') }}
    {{ environ.get('CONDA_EXTRA_BUILD_CONSTRAINT', '') }}
24
    {{ environ.get('CONDA_CUDATOOLKIT_CONSTRAINT', '') }}
25
    - ffmpeg >=4.1  # [not win]
26
27
28

  run:
    - python
Eli Uriegas's avatar
Eli Uriegas committed
29
    - defaults::numpy >=1.11
30
    - pytorch-mutex 1.0 {{ build_variant }}  # [not osx ]
Nikita Shulga's avatar
Nikita Shulga committed
31
    {{ environ.get('CONDA_PYTORCH_CONSTRAINT', 'pytorch') }}
32
    {{ environ.get('CONDA_CUDATOOLKIT_CONSTRAINT', '') }}
33

34
35
36
37
38
39
40
41
  {% if build_variant == 'cpu' %}
  run_constrained:
    - cpuonly
  {% elif not osx %}
  run_constrained:
     - cpuonly <0
  {% endif %}

42
build:
43
  string: py{{py}}_{{ environ.get('CU_VERSION', 'cpu') }}
44
45
  script_env:
    - BUILD_VERSION
46
47
    - USE_CUDA
    - TORCH_CUDA_ARCH_LIST
48
49
50
51
52
53
54
55
56
57
58
59
60
61

test:
  imports:
    - torchaudio
    - torchaudio.datasets
    - torchaudio.kaldi_io
    - torchaudio.sox_effects
    - torchaudio.transforms

  source_files:
    - test

  requires:
    - pytest
62
63
    # Ideally we would test this, but conda doesn't provide librosa
    # - librosa >=0.4.3
64
    - scipy
65
    - pytorch-mutex 1.0 {{ build_variant }}  # [not osx ]
66
67
68
69
70
71

about:
  home: https://github.com/pytorch/audio
  license: BSD
  license_file: LICENSE
  summary: 'simple audio I/O for pytorch'