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

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

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

  host:
    - python
    - setuptools
16
    - cpuonly
moto's avatar
moto committed
17
18
    - cmake
    - ninja
Eli Uriegas's avatar
Eli Uriegas committed
19
    - defaults::numpy >=1.11
Nikita Shulga's avatar
Nikita Shulga committed
20
21
    {{ environ.get('CONDA_PYTORCH_BUILD_CONSTRAINT', 'pytorch') }}
    {{ environ.get('CONDA_EXTRA_BUILD_CONSTRAINT', '') }}
22
23
24

  run:
    - python
Eli Uriegas's avatar
Eli Uriegas committed
25
    - defaults::numpy >=1.11
Nikita Shulga's avatar
Nikita Shulga committed
26
    {{ environ.get('CONDA_PYTORCH_CONSTRAINT', 'pytorch') }}
27
28

build:
29
  string: py{{py}}
30
31
  script_env:
    - BUILD_VERSION
32
33
34
35
36
37
38
39
40
41
42
43
44
45

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

  source_files:
    - test

  requires:
    - pytest
46
47
    # Ideally we would test this, but conda doesn't provide librosa
    # - librosa >=0.4.3
48
    - scipy
49
    - cpuonly
50
51
52
53
54
55

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