@@ -88,23 +88,23 @@ python setup.py install
88
88
conda install -y " ffmpeg<5"
89
89
python -c " import torch; import torchaudio; import torchcodec; print(torch.__version__, torchaudio.__version__, torchcodec.__version__)"
90
90
91
- # printf "* Installing test tools\n"
92
- # NUMBA_DEV_CHANNEL=""
93
- # if [[ "$(python --version)" = *3.9* || "$(python --version)" = *3.10* ]]; then
94
- # # Numba isn't available for Python 3.9 and 3.10 except on the numba dev channel and building from source fails
95
- # # See https://github.com/librosa/librosa/issues/1270#issuecomment-759065048
96
- # NUMBA_DEV_CHANNEL="-c numba/label/dev"
97
- # fi
98
- # (
99
- # set -x
100
- # conda install -y -c conda-forge ${NUMBA_DEV_CHANNEL} sox libvorbis parameterized 'requests>=2.20' 'ffmpeg>=6,<7'
101
- # pip install kaldi-io SoundFile librosa coverage pytest pytest-cov scipy expecttest unidecode inflect Pillow sentencepiece pytorch-lightning 'protobuf<4.21.0' demucs tinytag pyroomacoustics flashlight-text git+https://github.com/kpu/kenlm
102
-
103
- # # TODO: might be better to fix the single call to `pip install` above
104
- # pip install "pillow<10.0" "scipy<1.10" "numpy<2.0"
105
- # )
106
- # # Install fairseq
107
- # git clone https://github.com/pytorch/fairseq
108
- # cd fairseq
109
- # git checkout e47a4c8
110
- # pip install .
91
+ printf " * Installing test tools\n"
92
+ NUMBA_DEV_CHANNEL=" "
93
+ if [[ " $( python --version) " = * 3.9* || " $( python --version) " = * 3.10* ]]; then
94
+ # Numba isn't available for Python 3.9 and 3.10 except on the numba dev channel and building from source fails
95
+ # See https://github.com/librosa/librosa/issues/1270#issuecomment-759065048
96
+ NUMBA_DEV_CHANNEL=" -c numba/label/dev"
97
+ fi
98
+ (
99
+ set -x
100
+ conda install -y -c conda-forge ${NUMBA_DEV_CHANNEL} sox libvorbis parameterized ' requests>=2.20'
101
+ pip install kaldi-io SoundFile librosa coverage pytest pytest-cov scipy expecttest unidecode inflect Pillow sentencepiece pytorch-lightning ' protobuf<4.21.0' demucs tinytag pyroomacoustics flashlight-text git+https://github.com/kpu/kenlm
102
+
103
+ # TODO: might be better to fix the single call to `pip install` above
104
+ pip install " pillow<10.0" " scipy<1.10" " numpy<2.0"
105
+ )
106
+ # Install fairseq
107
+ git clone https://github.com/pytorch/fairseq
108
+ cd fairseq
109
+ git checkout e47a4c8
110
+ pip install .
0 commit comments