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 >> wxpython-users
wxpython-users
[wxpython-users] Re: lib.iewin hangs py2exe build
by Thomas Heller other posts by this author
Jun 3 2009 11:18AM messages near this date
Re: [wxpython-users] lib.iewin hangs py2exe build | Re: [wxpython-users] lib.iewin hangs py2exe build
Erez Bibi schrieb:
>  Mike Conley wrote:
> > Robin got me on the right track here.
> >   comtypes\gen\_3050F1C5_98B5_11CF_BB82_00AA00BDCE0B_0_4_0.py
> > is a 60,000+ file. the .pyc is over 1.4Mb
> >
> > trying to run a one liner that just imports that file through py2exe 
> > creates the problem. I suspect that letting it run long enough would 
> > eventually go to conclusion. Unfortunately we do our build on a 
> > relatively low power machine and probably can't change that any time 
> > soon (startups don't have much money).
> >
> > Does anyone know if there is a technique to tell py2exe to "put this 
> > in your output, but don't bother to analyze it"? If so, I can manually 
> > include this file and any relevant dependencies. 
> >
>  
>    Here Is an email I just sent the maintainer of py2exe Jimmy Retzlaff

Have you received an answer from Jimmy?  He told me (some time ago, in private
email) that he wants to step back from maintaining py2exe.  So, you should at
least post your 'patch' to the py2exe-users list, and submit it to the
py2exe bug tracker.  No guarantee that this will lead to inclusion of your
patch, but at least it won't get lost so easily.

>  
>    Adding "skip_scan" option to py2exe
>    ===================================
>  
>    Refer To: py2exe version 0.6.9
>  
>    Introduction
>    =============
>    I'm using py2exe for exe-ing a wxPython application. Recently I had to add
>    the embedded Internet Explorer module "wx.lib.iewin" to my application. This
>    module uses "comtypes" which is generating *very* big module that need to be
>    included in the distribution executable. Scanning this big module takes
>    about 15 minutes on my computer (Duo Core, 2G RAM). The idea is to tell
>    py2exe not to scan this module and add any required module manually through
>    the "includes" option.
>  
>    Implementation
>    ===============
>    I added a "skip_scan" option to py2exe, which is a list of modules names
>    (like: includes, excludes)
>  
[...]

Have you tried to profile and speed up modulefinder, so that it gets faster?
I think that this would also be worth to try.

-- 
Thanks,
Thomas

_______________________________________________
wxpython-users mailing list
wxpython-users@[...].org
http://lists.wxwidgets.org/mailman/listinfo/wxpython-users
Thread:
Erez Bibi
Thomas Heller
Erez Bibi
J
Christopher Barker
Christopher Barker
Thomas Heller
Christopher Barker
Andrea Gavana

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