By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
458,223 Members | 1,463 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 458,223 IT Pros & Developers. It's quick & easy.

What should I use under *nix instead of freeze?

P: n/a
In a comment Guido made on a recent bug report for the 'freeze'
utility, he stated:

"I think nobody really cares about freeze any more -- it isn't
maintained."

That being the case, what is the preferred/best replacement for freeze
on a *nix platform? I'm looking for something that, like freeze,
turns my application into a single-file executable, of the smallest
size possible, that can be executed on a machine with no Python
installation or development system.
Feb 1 '08 #1
Share this Question
Share on Google+
6 Replies


P: n/a
On Feb 1, 3:08 pm, Mike Kent <mrmak...@cox.netwrote:
In a comment Guido made on a recent bug report for the 'freeze'
utility, he stated:

"I think nobody really cares about freeze any more -- it isn't
maintained."

That being the case, what is the preferred/best replacement for freeze
on a *nix platform? I'm looking for something that, like freeze,
turns my application into a single-file executable, of the smallest
size possible, that can be executed on a machine with no Python
installation or development system.
This isn't a complete answer -- it requires Python, but
you might figure out a way to also embed an interpreter and
libraries.
I remember seeing such an installation somewhere (I think on
SourceForge),
but I don't remember the name of it. At any rate, this explains how
to
package your python project and libs as a self-extracting compressed
executable:

http://www.noah.org/wiki/Python_zip_exe

--
Noah Spurrier
Feb 2 '08 #2

P: n/a
Mike Kent wrote:
That being the case, what is the preferred/best replacement for freeze
on a *nix platform?
Don't know about best or preferred, but pyinstaller seems to do that.
<URL:http://pyinstaller.python-hosting.com>

good luck
/W
Feb 2 '08 #3

P: n/a
Martin v. Lwis wrote:
>That being the case, what is the preferred/best replacement for freeze
on a *nix platform?

I don't think that there is one, or that there should be one.
So haven't I understood what freeze does? Isn't pyinstaller just that?

/W
Feb 2 '08 #4

P: n/a
* Wildemar Wildenburger (Sat, 02 Feb 2008 01:39:05 +0100)
Mike Kent wrote:
That being the case, what is the preferred/best replacement for
freeze on a *nix platform?

Don't know about best or preferred, but pyinstaller seems to do
that. <URL:http://pyinstaller.python-hosting.com>
Doesn't work (on Linux).

Thorsten
Feb 2 '08 #5

P: n/a
>>That being the case, what is the preferred/best replacement for freeze
>>on a *nix platform?

I don't think that there is one, or that there should be one.

So haven't I understood what freeze does? Isn't pyinstaller just that?
No. First, it works on Windows, Linux and Irix only, not on arbitrary
*nix systems. Second, it doesn't create a single executable, but depends
on the extension modules that the host Python interpreter uses. To
compile a simple "print 'Hello, world'" with Python 2.5 on Debian, I
get an executable consisting of 22 binaries.

Regards,
Martin
Feb 2 '08 #6

P: n/a
On Sat, 02 Feb 2008 00:08:21 +0100, Mike Kent <mr******@cox.netwrote:
In a comment Guido made on a recent bug report for the 'freeze'
utility, he stated:

"I think nobody really cares about freeze any more -- it isn't
maintained."

That being the case, what is the preferred/best replacement for freeze
on a *nix platform? I'm looking for something that, like freeze,
turns my application into a single-file executable, of the smallest
size possible, that can be executed on a machine with no Python
installation or development system.
Never used it, but it seems cx_Freeze
(http://python.net/crew/atuining/cx_Freeze/) does just that... Don't know
if it's maintained anymore, but versions are available for the latest
Python version (2.5).

HTH
--
python -c "print ''.join([chr(154 - ord(c)) for c in
'U(17zX(%,5.zmz5(17l8(%,5.Z*(93-965$l7+-'])"
Feb 4 '08 #7

This discussion thread is closed

Replies have been disabled for this discussion.