python安装
$ git clone https://github.com/yyuu/pyenv.git ~/.pyenv
$ echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bash_profile
$ echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bash_profile
$ pyenv install 3.5.2
buildout安装
$ mkdir buildtest && cd buildtest
$ wget https://bootstrap.pypa.io/bootstrap-buildout.py
$ touch buildout.cfg
$ python bootstrap-buildout.py
$ mkdir src
$ bin/buildout init
[buildout]
show-picked-versions = true
develop = .
parts = rtest
# offline = true
find-links =
http://pypi.douban.com/simple
http://pypi.fcio.net/simple
#relative-paths = true
#versions = versions
#[versions]
#dependent-scripts = true
[rtest]
recipe = zc.recipe.testrunner
eggs = core.jet
项目构建
$ bin/buildout
$ bin/buildout -o 离线模式
$ bin/rtest