On 3/20/2009 8:42 PM, Brendan Miller wrote:
> I'm running on RHEL 4 and I need to package up and install my python
> app on other RHEL 4 boxes. Preferably it would be nice to hand them an
> RPM or something just as easy to install.
> 
> They will not have the version of python I use (2.6) or the third
> party modules (paramiko and pycrypto). These modules have C components
> to them.
> 
> Is pytinstaller suitable for what I'm talking about? If not, are there
> other options for deployment of python programs on linux?
> 
> I need to be able to push this out without people installing all the
> underlying dependencies by hand.

(please use PyInstaller SVN trunk)

PyInstaller is able to build either a single-dir or a single-file 
deployment, with all dependencies in them.

The single-dir setup is a directory containing a binary with all the 
.pyc stored inside and all the required dynamic libararies. When the 
executable is run, it adjusts the library path so that it looks in its 
directory first.

The single-file setup is similar, but it is a single packed file that 
explodes itself in /tmp while running. If you prepare a single-file, you 
can even simply mail it around.

If you then want a RPM, you can build upon it: just pack the directory 
or the file built by PyInstaller using any RPM build tool. PyInstaller 
does not contain code for this specific step (at this point at least).

A word of warning: at this point, Linux executables built by PyInstaller 
mostly work on the same Linux distribution they are built on, as they do 
not contain any file from /lib or /usr/lib. I think this is exactly what 
you need. In the future, I'm planning to add an option about this (so 
that it would be possible to make fatter binaries which are compatible 
across multiple distribution).

If you run into any trouble using PyInstaller, don't hesitate posting 
here. Thanks!
-- 
Giovanni Bajo
Develer S.r.l.
http://www.develer.com

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