On Thursday 21 December 2000 8:13 pm, James Henstridge wrote:
> On Thu, 21 Dec 2000, Steven M. Castellotti wrote:
> > I've seen toolkits to create win32 apps using glade/pygtk, but is it
> > possible to compile independant binaries (either linux or win32 or both)
> > from programs written in python/gkt/glade?
>
> Yes it is. First you will need to compile the C portion of pygtk
> statically into a python executable (this executable doesn't need to
> replace your existing python installation -- best to install this under a
> different prefix), along with any other C extensions you want to use in
> your program. I gave instructions on how to do this for pygtk a few days
> ago in the archives.
>
> Then use the freeze script distributed with python to create an executable
> containing the python portion of your program.
>
> If you miss the first part, the executable will require the extensions
> compiled as shared libraries.
>
> Note that although freezing a python program may be good in situations
> where people don't have python, the executables are a lot larger. If you
> are providing a number of these executables, it may be better to just
> install python on the machine (or a cut down version of it, if you find it
> to be too big).
>
> I don't know what the instructions for setting this up are for win32
> though.
>
> James.
>
If you are working on Window you may want to take a look at Gordon
Mc'Millian's (sp) installer stuff. Ive used it in the past for people to run
stuff off of a network share or cdrom (where they didn't have python
installed)...
--
Edward Muller - [EMAIL PROTECTED] - [EMAIL PROTECTED]
Grow a ponytail -- view it as your telepathic antenna to other Linux Kernel
Developers. -- Jeff V. Merkey
_______________________________________________
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk