File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -10,12 +10,16 @@ rm -rf /tmp/torchaudio-deps
1010mkdir /tmp/torchaudio-deps
1111pushd /tmp/torchaudio-deps
1212
13- CURL_OPTS=" --retry 8 --connect-timeout 8 "
1413
15- curl -L $CURL_OPTS -o sox-14.4.2.tar.bz2 " http://downloads.sourceforge.net/project/sox/sox/14.4.2/sox-14.4.2.tar.bz2?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fsox%2Ffiles%2Fsox%2F14.4.2%2F&ts=1416316415&use_mirror=heanet"
16- curl -L $CURL_OPTS -o lame-3.99.5.tar.gz " http://downloads.sourceforge.net/project/lame/lame/3.99/lame-3.99.5.tar.gz?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Flame%2Ffiles%2Flame%2F3.99%2F&ts=1416316457&use_mirror=kent"
17- curl -L $CURL_OPTS -o flac-1.3.2.tar.xz " https://superb-dca2.dl.sourceforge.net/project/flac/flac-src/flac-1.3.2.tar.xz"
18- curl -L $CURL_OPTS -o libmad-0.15.1b.tar.gz " https://downloads.sourceforge.net/project/mad/libmad/0.15.1b/libmad-0.15.1b.tar.gz"
14+ # Curl Settings
15+ # 3 minutes is the absolute max for the curl command
16+ # Retry up to 10 times, wait to connect at most 5s per time
17+ CURL_OPTS=" -L --retry 10 --connect-timeout 5 --max-time 180"
18+
19+ curl $CURL_OPTS -o sox-14.4.2.tar.bz2 " http://downloads.sourceforge.net/project/sox/sox/14.4.2/sox-14.4.2.tar.bz2"
20+ curl $CURL_OPTS -o lame-3.99.5.tar.gz " http://downloads.sourceforge.net/project/lame/lame/3.99/lame-3.99.5.tar.gz"
21+ curl $CURL_OPTS -o flac-1.3.2.tar.xz " https://superb-dca2.dl.sourceforge.net/project/flac/flac-src/flac-1.3.2.tar.xz"
22+ curl $CURL_OPTS -o libmad-0.15.1b.tar.gz " https://downloads.sourceforge.net/project/mad/libmad/0.15.1b/libmad-0.15.1b.tar.gz"
1923
2024# unpack the dependencies
2125tar xfp sox-14.4.2.tar.bz2
You can’t perform that action at this time.
0 commit comments