[pygtk] sub modules includes with py2exe

laguillaumie sylvain s.lagui at free.fr
Thu Aug 18 21:38:08 WST 2011


hi all

i try to build a new exe for my app with py2exe...

my question is,for exemple i have a module Gmediafinder in this module 
dir i have lib and lib.engines

when py2exe build is finished i have the gmediaFinder dir in my 
library.zip but not the sub lib and lib/engines dir

how can i add them (with .pyo/c created normally) please

thanks A LOT :)




the interesting part of my setup.py :

setup(
     name = 'gmediafinder',
     packages = ['GmediaFinder'],
     description = 'Stream and download youtube or mp3 search engines 
files',
     version = '1.0',
     #zipfile = None,
     windows = ['GmediaFinder/gmediafinder.py'],

     options = {
                   'py2exe': {
                       'unbuffered': True,
                       'optimize': 2,
                       'packages':'encodings',
                       'includes': 'cairo, pango, pangocairo, atk, 
gobject, gio, gst, gtk'
                   }
               },

     data_files=[('images/22x22',['images/22x22/gmediafinder.png']),
     ('images/24x24',['images/24x24/gmediafinder.png']),
     
('images/48x48',['images/48x48/gmediafinder.png','images/48x48/gmediafinder.ico']),
         ('images/48x48/apps',['images/48x48/gmediafinder.png']),
     ('data/glade',['data/glade/mainGui.glade']),
     ('data/scripts',['data/scripts/get_stream.py']),
         
('data/img',['data/img/gmediafinder.png','data/img/sound.png','data/img/throbber.png','data/img/throbber.gif','data/img/yt_icone.jpg']),
                ]
)


More information about the pygtk mailing list