如何在IronPython下将模块安装为egg?
也许,这是一个愚蠢的问题,但我不能将 python Egg 与 IronPython 一起使用。
我想用 IronPython 2.0.2 测试我开发的一个模块。 这个模块是纯Python的。 它可以与 python 2.6 一起使用,并且通过 setuptools 作为 python Egg 安装。
我认为在 IronPython 下安装模块的过程非常相似,但不幸的是它不起作用。
我无法使用 IronPython 安装 setuptools-0.6c9(IronPython 崩溃)。 我尝试在 IronPython 站点包下手动复制我的鸡蛋,但它也不起作用。
我还尝试将 python 2.6 站点包包含在 IronPython 路径中,但它无法加载我的模块。
我用其他模块做了一些测试,似乎 IronPython 无法加载鸡蛋。 我错过了什么?
Maybe, it is a stupid question but I can't use python eggs with IronPython.
I would like to test with IronPython 2.0.2 one module that I've developped. This modules is pure python. It works ok with python 2.6 and is installed as a python egg thanks to setuptools.
I thought that the process for installing my module under IronPython was very similar but unfortunately it doesn't work.
I can't install setuptools-0.6c9 with IronPython (Crash of IronPython). I've tried to copy manually my egg under IronPython site-packages and it doesn't work either.
I've also tried to include the python 2.6 site-package in the IronPython path but it can't load my module.
I've made some tests with other modules and it seems that IronPython can not load eggs. Did I miss something?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
AFAIK 这仍然是不可能的 - 它的工作正在进行中。 请参阅这篇文章,例如。 IronPython 的主要优势在于与 .NET 生态系统的集成 - 它并不是 CPython 的直接替代品。 请参阅这篇文章对于 IronPython 的一些其他限制。
AFAIK it's still not possible - it's work in progress. See this post, for example. IronPython's main strength is in integration with the .NET ecosystem - it's not a drop-in replacement for CPython. See this post for some other limitations of IronPython.