简体   繁体   English

如何在IronPython下以鸡蛋的形式安装模块?

[英]How to install a module as an egg under IronPython?

Maybe, it is a stupid question but I can't use python eggs with IronPython. 也许,这是一个愚蠢的问题,但是我不能在IronPython中使用python鸡蛋。

I would like to test with IronPython 2.0.2 one module that I've developped. 我想用IronPython 2.0.2测试我开发的一个模块。 This modules is pure python. 这个模块是纯python。 It works ok with python 2.6 and is installed as a python egg thanks to setuptools. 它可以在python 2.6上正常工作,并且通过setuptools可以作为python egg安装。

I thought that the process for installing my module under IronPython was very similar but unfortunately it doesn't work. 我以为在IronPython下安装我的模块的过程非常相似,但不幸的是它不起作用。

I can't install setuptools-0.6c9 with IronPython (Crash of IronPython). 我无法使用IronPython安装setuptools-0.6c9(IronPython崩溃)。 I've tried to copy manually my egg under IronPython site-packages and it doesn't work either. 我尝试在IronPython网站包下手动复制我的蛋,但它也不起作用。

I've also tried to include the python 2.6 site-package in the IronPython path but it can't load my module. 我也尝试在IronPython路径中包含python 2.6 site-package,但它无法加载我的模块。

I've made some tests with other modules and it seems that IronPython can not load eggs. 我已经对其他模块进行了一些测试,看来IronPython无法加载鸡蛋。 Did I miss something? 我错过了什么?

AFAIK it's still not possible - it's work in progress. AFAIK仍然不可能-正在进行中。 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. IronPython的主要优势在于与.NET生态系统的集成-它不是CPython的直接替代品。 See this post for some other limitations of IronPython. 有关IronPython的其他一些限制,请参见这篇文章

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM