473,396 Members | 2,029 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

What should I use under *nix instead of freeze?

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
6 1229
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
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
Martin v. Löwis 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
* 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
>>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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

92
by: Reed L. O'Brien | last post by:
I see rotor was removed for 2.4 and the docs say use an AES module provided separately... Is there a standard module that works alike or an AES module that works alike but with better encryption?...
2
by: aww91 | last post by:
Company is planning a Sybase to UDB migration that is projected to take 1 year. During that long period of time any Code Freeze put into place would impact our users (we normally release code...
2
by: mrstephengross | last post by:
I'm working with the freeze utility, and I'm trying to learn the basics. For the most part, I think I understand how it works. I have a question about modules, though. I want to make sure that...
4
by: Roger Withnell | last post by:
I would like to freeze column and row headings on a webpage, simulating freeze panes as in an Excel spreadsheet. Don't seem to be able to do it with Frames. Is there a way with Javascript...
92
by: Ray | last post by:
I just moved to another company that's mainly a Java/.NET shop. I was happy to find out that there's a movement from the grassroot to try to convince the boss to use a dynamic language for our...
1
by: jmalone | last post by:
I have a python script that I need to freeze on AIX 5.1 (customer has AIX and does not want to install Python). The python script is pretty simple (the only things it imports are sys and socket)....
1
by: Cameron Laird | last post by:
How is Freeze--freeze.py <URL: http://wiki.python.org/moin/Freeze >--packaged for Debian? *Is* it packaged for Debian?
4
by: ToxSox | last post by:
Hello. This is my first post here and i have a big problem with my script! One page (child.htm), was delivered not by me and i can't change it. This page calls a methode in a object of my page....
2
by: Gabriel Rossetti | last post by:
Hello everyone, I'm trying to use python's freeze utility but I'm running into problems. I called it like this : python /usr/share/doc/python2.5/examples/Tools/freeze/freeze.py...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.