[pygtk] PyGTK + glade + freeze
Luca Masini
luca.masini at t-online.de
Thu Sep 16 01:18:05 WST 2004
On Wed, 15 Sep 2004 08:12:47 -0400 (EDT), Stuart Brorson <sdb at cloud9.net>
wrote:
> Thanks for the suggestion to use cx_Freeze. Actually, I tried using
> this package before trying the usual Python "freeze". However, I was
> unable to run it -- it always bombed, and complained about sending
> three args to a fcn which wanted four! Here are my vital statisitics:
>
> cx_Freeze 2.something (latest stable release, I think)
> Python 2.2.3
> Fedora Core 1
> PyGTK -- latest release.
> GTK-2.4.X
My configuration is
cx_Freeze2.2
Python 2.3.2
Mandrake 9.2 (network updated... almost a 10.0)
PyGTK 2.2.0 (this is not the last release)
GTK 2.2.4 (this is not the last release)
I can send you the sources that I frozed if you wont.
They are just three files (the .py, the .glade and a .png)
Here the instruction (from passaworta.py)
#-------------------------------------------------------------------------------
# To freeze this program leave import sys as first import and uncomment
# the sys.path assignment
# ----
# 1. Copy the content of /usr/local/src/cx_Freeze-2.2 to a working
directory
# 2. cd to that working directory
# 3. python MakeFrozenBases.py (prepare le basi)
# 4. copy the source that you want to freeze to this directory
# passaworta.glade
# passaworta.py <- REMEMBER TO UNCOMMENT THE sys.path ASSIGNMENT
# pixmaps/
# 5. python FreezePython.py --base-binary ./ConsoleBase --install-dir out
passaworta.py
# 6. copy the GLADE file and the pixmaps directory to out
# passaworta.glade
# pixmaps/
# 7. The out directory should now contain a binary working package
#-------------------------------------------------------------------------------
I end wit an out directory containing the following files:
-rwxr-xr-x 1 luca luca 91105 ott 27 2003 array.so*
-rwxr-xr-x 1 luca luca 61285 ott 27 2003 binascii.so*
-rwxr-xr-x 1 luca luca 39354 ott 27 2003 crypt.so*
-rwxr-xr-x 1 luca luca 284444 mag 2 02:11 gobject.so*
-rwxr-xr-x 1 luca luca 286280 mag 2 02:11 gtk.glade.so*
-rwxr-xr-x 1 luca luca 2517504 mag 2 02:11 gtk._gtk.so*
-rwxr-xr-x 1 luca luca 61624 ott 27 2003 math.so*
-rwxr-xr-x 1 luca luca 70431 ott 27 2003 md5.so*
-rwxr-xr-x 1 luca luca 1302509 set 15 19:02 passaworta*
-rw-r--r-- 1 luca luca 16393 set 15 19:00 passaworta.glade
drwxr-xr-x 3 luca luca 4096 set 15 19:00 pixmaps/
-rwxr-xr-x 1 luca luca 45418 ott 27 2003 pwd.so*
-rwxr-xr-x 1 luca luca 49688 ott 27 2003 _random.so*
-rwxr-xr-x 1 luca luca 52521 ott 27 2003 sha.so*
-rwxr-xr-x 1 luca luca 69385 ott 27 2003 strop.so*
-rwxr-xr-x 1 luca luca 58958 ott 27 2003 time.so*
It works...
it's not optimal but it works.
Luca Masini
More information about the pygtk
mailing list