Re: [pyxpcom] Minimal Python for XPCOM use
by Todd Whiteman other posts by this author
Oct 19 2008 9:23PM messages near this date
view in the new Beta List Site
[pyxpcom] Minimal Python for XPCOM use
|
[pyxpcom] Problems distributing Xulrunner + Pyxpcom
Davi Ramos wrote:
> I want to write some XPCOM components in Python, using that pyxpcom
> xpcom bindings. But I don't want to package my application with entire
> python runtime, just the necessary for write the xpcom components.
>
> I just noted that Blender makes use of Python with just a few modules
> (approximately 600KB) just the necessary for embed Python on Blender.
> I would like to know how determine that minimal set of modules, and
> package my application only with the essential (IE remove the
> batteries :P).
Hi Davi,
It's certainly possible to use PyXPCOM with a limited subset of Python.
I'm not exactly sure what that subset needs to be, a quick grep on the
sources and/or the Python modulefinder may be of some assistance there:
http://www.python.org/doc/2.5.2/lib/module-modulefinder.html
You could start off with a pre-built PyXPCOM package (such as PythonExt
[1]), then strip down to bare-bones as you need.
[1] PythonExt
http://pyxpcomext.mozdev.org/
Cheers,
Todd
_______________________________________________
pyxpcom mailing list
pyxpcom@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Thread:
Davi Ramos
Todd Whiteman
|