如何在IronPython下以鸡蛋的形式安装模块? [英] How to install a module as an egg under IronPython?
问题描述
也许这是一个愚蠢的问题,但是我不能在IronPython中使用python鸡蛋.
Maybe, it is a stupid question but I can't use python eggs with IronPython.
我想用IronPython 2.0.2测试我开发的一个模块.这个模块是纯python.它可以在python 2.6上正常运行,并且通过setuptools可以作为python egg安装.
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.
我认为在IronPython下安装我的模块的过程非常相似,但不幸的是,该过程不起作用.
I thought that the process for installing my module under IronPython was very similar but unfortunately it doesn't work.
我无法使用IronPython安装setuptools-0.6c9(IronPython崩溃).我试图在IronPython网站包下手动复制我的蛋,但是它也不起作用.
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.
我也尝试在IronPython路径中包含python 2.6 site-package,但它无法加载我的模块.
I've also tried to include the python 2.6 site-package in the IronPython path but it can't load my module.
我已经对其他模块进行了一些测试,看来IronPython无法加载鸡蛋.我错过了什么吗?
I've made some tests with other modules and it seems that IronPython can not load eggs. Did I miss something?
推荐答案
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.
这篇关于如何在IronPython下以鸡蛋的形式安装模块?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!