首页 > 解决方案 > 如何在 python3 中使用 Mercurial 的 Buildbot 钩子?

问题描述

我正在使用此buildbot 挂钩将有关 HG 存储库变更集的信息发送到 Buildmaster(构建服务器),并且该设置适用于 python2。现在我正在将Buildbot升级到2.0.1版本,它只支持python3.5+,并且HG(hook)上的Buildbot版本应该与Build server(master和worker)的版本相同;我的问题是:

  1. 如何mercurial在 Buildbot 2.0.1(python 3.5+)的钩子中使用 python 模块-当 mercurial module is not supported bypython3`

  2. 设置是否[hgbuildbot] venv = /home/buildbot/.virtualenvs/builtbot/lib/python3.5/sitepackages足以确保钩子在带有 python3 的virutalenv 中运行

更新:我的第二个问题的答案是肯定的,用 python2 虚拟环境测试。

标签: python-3.xmercurialbuildbotmercurial-hook

解决方案


推荐阅读