diff --git a/doc/src/install.md b/doc/src/install.md index fd42224d..01049a2f 100644 --- a/doc/src/install.md +++ b/doc/src/install.md @@ -43,14 +43,6 @@ bash setup.sh source tools/venv/bin/activate ``` -- Besides, installing AutoLog via `git`: -```bash -git clone https://github.com/LDOUBLEV/AutoLog -pip3 install -r requirements.txt -python3 setup.py bdist_wheel -pip3 install ./dist/AutoLog-1.0.0-py3-none-any.whl -``` - ## Running in Docker Container (optional) Docker is an open source tool to build, ship, and run distributed applications in an isolated environment. A Docker image for this project has been provided in [hub.docker.com](https://hub.docker.com) with all the dependencies installed. This Docker image requires the support of NVIDIA GPU, so please make sure its availiability and the [nvidia-docker](https://github.com/NVIDIA/nvidia-docker) has been installed. diff --git a/setup.sh b/setup.sh index 11daa102..0c602e61 100644 --- a/setup.sh +++ b/setup.sh @@ -43,6 +43,23 @@ if [ $? != 0 ]; then rm libsndfile-1.0.28.tar.gz fi +#install auto-log +python3 -c "import auto_log" +if [ $? != 0 ]; then + info_msg "Install auto_log into default system path" + git clone https://github.com/LDOUBLEV/AutoLog + if [ $? != 0 ]; then + error_msg "Download auto_log failed !!!" + exit 1 + fi + cd AutoLog + pip3 install -r requirements.txt + python3 setup.py bdist_wheel + pip3 install ./dist/[Aa]uto*.whl + cd .. + rm -rf AutoLog +fi + # install decoders python3 -c "import pkg_resources; pkg_resources.require(\"swig_decoders==1.1\")" if [ $? != 0 ]; then @@ -66,4 +83,5 @@ if [ $? != 0 ]; then fi popd + info_msg "Install all dependencies successfully."