IronPython 下的 Bazaar VCS?

发布于 2024-08-14 07:53:19 字数 45 浏览 6 评论 0 原文

有人在 IronPython 中成功执行了源代码控制系统 Bazaar 吗?

Has anyone successfully executed the source control system Bazaar in IronPython?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

爱已欠费 2024-08-21 07:53:19

是的,Bazaar 是带有可选扩展的纯 Python,并将在 IronPython 上运行。但有一些注意事项。首先,Bazaar 需要进行一些尚未与主分支合并的更改。其次,IronPython 缓慢的启动时间使其不适合一般的 bzr 使用,并且由于缺少模块等原因存在一些突出的问题。

如果您想自己尝试一下,也可以。下载并安装 IronPython 2.6Jeff Hardy 对 IronPython 的 zlib 模块的实现(按照 zip 中的自述文件进行操作)。您还需要将 gzip.py 从 CPython 标准库复制到 IronPython lib 文件夹。最后,获取Bazaar 的发行版,这样您就可以获得开发分支

完成后,您可以遵循类似的操作(根据需要调整您自己的路径)并拥有一个功能性的(ish)Bazaar-on-IronPython:

>set IPYDIR="C:\Program Files\IronPython 2.6"\

>bzr branch lp:~gz/bzr/noncpython
Branched 4715 revision(s).

>cd noncpython

>%IPYDIR%ipy setup.py build_ext --allow-python-fallback install_lib --no-compile install
...

>%IPYDIR%ipy %IPYDIR%Scripts\bzr version
...
Bazaar (bzr) 2.1.0dev
  Python interpreter: C:\Program Files\IronPython 2.6\ipy.exe 2.6.0
  Python standard library: C:\Program Files\IronPython 2.6\Lib
  Platform: cli-32bit
  bzrlib: C:\Program Files\IronPython 2.6\lib\site-packages\bzrlib
...

是的,需要 setup.py 的所有垃圾(告诉 Bazaar 不要编译 Pyrex 版本的东西,并且 disutils 不要尝试制作 pyc 文件)。可能会有一些额外的(无害的)输出抱怨编码,但您应该发现本地分支的大多数功能都可以正常工作。

Yes, Bazaar is pure-python with optional extensions and will run on IronPython. There are a few caveats though. Firstly some changes are needed to Bazaar that haven't yet been merged with the main branch. Secondly, IronPython's slow startup time makes it unsuitable for general bzr usage, and there are are some outstanding issues due to missing modules and the like.

If you want to give it a go yourself though, you can. Download and install IronPython 2.6 and Jeff Hardy's implementation of the zlib module for IronPython (follow the readme in the zip). You'll also need to copy gzip.py from the CPython standard library to the IronPython lib folder. Finally, get a release version of Bazaar so you can get a copy of a development branch.

With that done, you can follow something like this (adjusting for your own paths as needed) and have a functional(ish) Bazaar-on-IronPython:

>set IPYDIR="C:\Program Files\IronPython 2.6"\

>bzr branch lp:~gz/bzr/noncpython
Branched 4715 revision(s).

>cd noncpython

>%IPYDIR%ipy setup.py build_ext --allow-python-fallback install_lib --no-compile install
...

>%IPYDIR%ipy %IPYDIR%Scripts\bzr version
...
Bazaar (bzr) 2.1.0dev
  Python interpreter: C:\Program Files\IronPython 2.6\ipy.exe 2.6.0
  Python standard library: C:\Program Files\IronPython 2.6\Lib
  Platform: cli-32bit
  bzrlib: C:\Program Files\IronPython 2.6\lib\site-packages\bzrlib
...

Yes, all that junk for setup.py is needed (to tell Bazaar not to compile the pyrex versions of things and disutils not to try and make pyc files). There will probably be some extra (harmless) output complaining about encodings, but you should find that most things with local branches work fine.

伴我心暖 2024-08-21 07:53:19

IronPython 中仍然缺少运行 bzr 所需的几个重要模块。因此,据我所知,今天(2009 年 12 月)不可能在 IronPython 下运行 bzr。

您可以在主 bzr 邮件列表中询问此问题: http://lists.canonical.com/mailman /listinfo/bazaar。几个月前,Martin(gzlist 或 gz)报道了他在这一领域的成就。

There is several important modules still absent in IronPython which required to run bzr. So, AFAIK today (December 2009) is not possible to run bzr under IronPython.

You may ask this question in main bzr mailing list: http://lists.canonical.com/mailman/listinfo/bazaar. Several months ago Martin (gzlist or gz) has reported about his achievements in this area.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文