tox环境安装

ubuntu 下安装tox环境

1.apt-get install pip

2.pip install tox

3.git git clone https://github.com/openstack/nova.git 源码库https://github.com/openstack/

4.cd nova

5.tox -e pep8 (如果不加参数直接执行 tox,会按照tox.ini中的配置检查所有。grep envlist tox.ini 查看tox需要检查哪些内容)

 

FAQ

1.tox -e pep8 报错 tools/flake8wrap1.sh  syntax error:unexpected end of file

遇到的不是这样由于windows和Linux相互拷贝文件而导致的。这个是语法错误。将 tools/flake8wrap1.sh这个文件重新手打一份。

2.怎样排查问题

一般看 项目下的tox.ini 文件,里面都执行哪些命令,哪到环境里面手动执行一下,进行排错

posted on 2018-03-03 15:02  sosogengdongni  阅读(886)  评论(0编辑  收藏  举报

导航