我是靠谱客的博主 贪玩鸡翅,这篇文章主要介绍几种语言原生开发环境构建之--Python语言,现在分享给大家,希望可以做个参考。

2019独角兽企业重金招聘Python工程师标准>>> hot3.png

python安装

复制代码
1
2
3
4
5
$ 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安装

复制代码
1
2
3
4
5
6
7
$ 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.cfg
复制代码
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
[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

项目构建

  • 运行
复制代码
1
2
3
$ bin/buildout $ bin/buildout -o 离线模式
  • 测试
复制代码
1
2
$ bin/rtest

项目代码

转载于:https://my.oschina.net/jackywyz/blog/729126

最后

以上就是贪玩鸡翅最近收集整理的关于几种语言原生开发环境构建之--Python语言的全部内容,更多相关几种语言原生开发环境构建之--Python语言内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(66)

评论列表共有 0 条评论

立即
投稿
返回
顶部