Hi.
I used PyInstaller to build Windows executables gtk based.
I had this "problem" (is this a problem?), and I "solved" it by 
(manually) copying the gtk folders (/etc /lib ...) and my files .glade , 
under the /distapplication folder.
After that, I packed the /distapplication folder with an installer (I 
used Nsis and now I use Bitrock Installer).

Regards,
Andrea Maccis
> Hi,
>   I have problems with gtk.
>
> I'm using the python2.5 branch of pyinstaller under windows; I have 
> installed the following package in order to install gtk,pytgk, etc.
> http://aruiz.typepad.com/siliconisland/2006/12/allinone_win32_.html
>
> Working in the main.py directory I produce the directory deployment 
> "distmain":
> python c:\..blabla..\Makespec.py -d main.py
> python c:\..blabla..\Build.py main.spec
>
> but I have two problems:
> 1) I have to manually copy the "testgtk.glade" file under the "distmain" 
> directory
> 2) I have to manually copy the "c:\program 
> files\pygtk\gth\etc\pango\pango.modules" file under "distmain\etc\pango" 
> and the "c:\program files\pygtk\gtk\lib\pango\1.5.0\*" files under 
> "distmain\lib\pango\1.5.0\"
>
> I found that other persons had the same problem.
>
> Has anyone find a solution?
>
>
> Here my solutions:
>
> 1) I added "[('testgtk.glade', '.\\testgtk.glade', 'DATA')]," in main.spec:
> ...
> coll = COLLECT( exe, [('testgtk.glade', '.\\testgtk.glade', 'DATA')],
>                a.binaries,
>                strip=False,
>                upx=False,
>                name='distmain')
>
> I think it should be a good solution
>
> 2) I copy the above etc\ and lib\ directories under a new directory 
> ".\dirs" at the main level (where there are main.py and main.spec).
> Then I have modified the main.spec:
> ...
> tr = Tree('.\\dirs')
> coll = COLLECT( exe, tr, [('testgtk.glade', '.\\testgtk.glade', 'DATA')],
>                a.binaries, strip=False, upx=False, name='distmain')
>
> This is not a good solution: in order to let it work I have to use a 
> pango version that have to match the current "allinone_win32" pango 
> installed version. It should be better if the executable could find the 
> current pango installation.
>
>
> With this solutions I can't create a single executable file. Can I? I 
> use pyinstaller today for the first time, if I use COLLECT I don't know 
> how to create a single file.
> If I can't, I have to use an installer (nsis ?).
>
>
> Thanks
> Alessandro
>
>   


--~--~---------~--~----~------------~-------~--~----~
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