On mar, 2010-08-03 at 08:46 -0700, Ruud Burger wrote:

> What it does it:
> Scans all my python files for which modules to include.
> Removes all the modules I want to include as source later.
> Analyse again, using WindowsStart.py that calls my main script
> (CouchPotato.py), excluding all the modules I want to exclude from the
> a.scripts.
> Collect the exe + some files
> Collect the modules
> 
> 
> The problem is that if I exclude modules from scan, it also doesn't
> add the modules that module is using.
> For example if I exlude sqlalchemy, the module pysqlite3 isnt included
> and thus the program won't run.
> 
> Hopes this makes sense.

I don't get it why you do the double scan.

Just split a.scripts into two lists: internals and externals. Then, pass
the internals list to EXE() and the external list to COLLECT(). 

a.scripts is a regular list, nothing magic: you can pass your own
stripped-down list to EXE() or any other function.

-- 
Giovanni Bajo      ::  Develer S.r.l.
[email protected]  ::  http://www.develer.com

Blog: http://giovanni.bajo.it
Last post: Compile-time Function Execution in D

-- 
You received this message because you are subscribed to the Google Groups 
"PyInstaller" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pyinstaller?hl=en.

Reply via email to