CollabNet 的 python svn 绑定的替代方案是什么?
CollabNet 提供的 python svn 绑定 的替代方案是什么(这里有 2 个目录:svn 和 libsvn,第二个有很多预编译库)?它的问题是它无法配置为在 Python 上运行 Windows 版本。我们已经完成了各个论坛上所写的内容,但没有奏效。
最好的情况是完全用 python 编写的包——没有编译问题。我知道pysvn,但它似乎具有客户端功能(基于签出的代码)而不是服务器端功能(基于提供的存储库路径,例如svnlook)。
What is the alternative for the python svn bindings provided by CollabNet (this where you have 2 directories: svn and libsvn, the second with a lot of pre-compiled libraries)? The problem with it is that it just can't be configured to run with Windows version on Python. We've done what was written on various fora, but it just didn't work.
At best would be the package written fully in python - no compilation issues. I know of pysvn, but it seems to have client-side functionality (based on checkouted code) not server-side (based on provided repository path, such as svnlook).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Apache Subversion 用 C 语言编写,并为操作系统提供本机库。在 Windows 上,这意味着 DLL。 Subversion 为许多不同的语言(包括 Python)提供“绑定”。这为您提供了一个垫片,让您可以用您的语言编写代码,并且绑定可以处理对本机库的调用。
要使用 Python 绑定,您需要将它们安装到 Python 系统中,但您还需要确保适当的 Subversion 本机库位于 PATH 上。您的 Python 代码将加载 Python 绑定,但该代码将加载并调用本机 DLL。因此它们必须位于 PATH 上并且必须是匹配的版本。
Subversion 没有“纯 Python”版本。
Apache Subversion is written in C and provides native libraries for the OS. On Windows, this means DLL's. Subversion provides "bindings" for a number of different languages, including Python. This gives you a shim that lets you write code in your language and the bindings handle making calls into the native libraries.
To use the Python bindings, you need to install them into your Python system but you ALSO need to make sure the appropriate Subversion native library are on PATH. Your Python code will load the Python bindings, but that code will load and make calls into the native DLL's. So they have to be on the PATH and they have to be a matching version.
There is no "pure Python" version of Subversion.