构建用于安装phantomjs/casperjs的配方
gp.recipe.phantomjs的Python项目详细描述
构建安装phantomjs/casperjs的方法
支持的选项
配方支持以下选项:
- 幻影url
- 下载phantomjs的url
- 幻影js url base
- 如果未指定phantomjs url,则此配方从 Phantomjs URL库。默认为https://bitbucket.org/ariya/phantomjs/downloads/。 如果您想使用自己的镜像来处理幻影,请设置此项。
- 幻影js url模板
如果phantomjs url和phantomjs url模板是 未指定,可以设置将填充 变量。变量应该包装在{}中,并且 支持以下值:
- 拱门:建筑。x86_64或i686
- Phantom_平台:遵循标准Phantomjs URL(如Linux、MacOSX)规定的格式的平台。
- Phantom_扩展名:由标准Phantomjs URL(例如tar.bz2,zip)指定的格式指定的扩展名
- 平台:平台,它是Linux、Darwin或Windows之一
- 版本:phantomjs的版本
默认模板为:
https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-{version}-{phantom_platform}.{phantom_extension}
- 幻影版
- 尝试从版本中检索phantomjs url
- casperjs url
- 下载casperjs的url
示例用法
我们将从创建使用配方的构建开始:
>>> write('buildout.cfg', ... """ ... [buildout] ... parts = casperjs ... ... [casperjs] ... recipe = gp.recipe.phantomjs ... """) >>> system('buildout') >>> ls('bin') - buildout - casperjs - phantomjs
贡献者
- 盖尔帕斯格里莫德
- 理查德·巴雷尔
- 津美宇介
变更历史
2.0.0.0(2015-02-11)
- 什么都没变。
1.9.7.2(2014-05-10)
改进URL生成
1.9.7.0(2014-02-19)
切换到Phantomjs 1.9.7
允许使用BuildOut的相对路径选项
1.9.1
切换到Phantomjs 1.9.1
添加phantomjs url base选项以使用phantomjs镜像。
1.9.0.2
切换到Phantomjs 1.9.0
添加Windows支持[Agroszer]
1.7.0.3
Python3号
1.7.0.4
还支持Linux3
对Linux系统使用正确的架构(x86_64/i686)
1.7.0.2
对chmod使用正确的八进制格式
1.7.0
- 升级至casperjs 1.0.0-rc4和phantomjs 1.7.0
- 修复可执行权限问题
1.3
首次“稳定”释放