diff --git a/requirements.txt b/requirements.txt index d712787ffc019733db29e6b1a23f868faf3da29f..967b4f8c3148c62cd5b7a511567848af6c5c8f93 100755 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,3 @@ -SoundFile==0.9.0.post1 wget==3.2 scipy==0.13.1 resampy==0.1.5 \ No newline at end of file diff --git a/setup.sh b/setup.sh index e0ce1c4e6fe5aa0eb4006acb2be417afa57d0c7c..8cba91ecdb68b42125181331471f9ee323062a24 100644 --- a/setup.sh +++ b/setup.sh @@ -1,7 +1,7 @@ #!/bin/bash # install python dependencies -if [ -f 'requirements.txt' ]; then +if [ -f "requirements.txt" ]; then pip install -r requirements.txt fi if [ $? != 0 ]; then @@ -9,4 +9,25 @@ if [ $? != 0 ]; then exit 1 fi +# install package Soundfile +curl -O "http://www.mega-nerd.com/libsndfile/files/libsndfile-1.0.28.tar.gz" +if [ $? != 0 ]; then + echo "Download libsndfile-1.0.28.tar.gz failed !!!" + exit 1 +fi +tar -zxvf libsndfile-1.0.28.tar.gz +cd libsndfile-1.0.28 +./configure && make && make install +cd - +rm -rf libsndfile-1.0.28 +rm libsndfile-1.0.28.tar.gz +pip install SoundFile==0.9.0.post1 +if [ $? != 0 ]; then + echo "Install SoundFile failed !!!" + exit 1 +fi + +# prepare ./checkpoints +mkdir checkpoints + echo "Install all dependencies successfully."