[IronPython] How to include packages in compilation
ward.matt at gmail.com
Sun Feb 21 15:48:08 CET 2010
Can you use _ctypes provided by IronPython in IronPython.Modules? You
may have to use a later version of SharpDevelop to get IronPython 2.6
with the _ctypes module.
If not then you could compile ctypes into a separate assembly. Harry
Pierson has a post on this:
You should be able to do the same thing with SharpDevelop if you
create a new class library project called ctypes, add the ctypes .py
files to it, compile it and then reference the ctypes assembly in your
main project. You will need to add quite a few other python files to
your main project though (os.py, ntpath,py, stat.py, abc.py,
_abcoll.py, genericpath.py, linecache.py, struct.py, types.py,
UserDict.py, warnings.py) to be able to compile your application.
On 21 February 2010 13:24, Heiko Henkelmann <heiko at hhenkelmann.de> wrote:
> Dear All,
> I need to use the Queue and ctypes modules from the standard library in my
> project and I want to compile the project to distribute it. I'm using
> SharpDevelop 3.1 to do the compilation. For the Queue module I succeded by
> manually including all the needed py files from the Lib subdir of my
> IronPython 2.6 directory in the project. Due to the fact that ctypes is a
> package I was up to now unable to find a solution. I assume the problem
> would be the same if I would use pyc.py.
> Does anyone have an idea how to include packages in the compilation?
> Thank you in advance.
> Users mailing list
> Users at lists.ironpython.com
More information about the Ironpython-users