ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> pyxpcom
pyxpcom
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

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved