473,804 Members | 2,124 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

python scripts to standalone executable

Hi

I am looking for a some tool that can convert python scripts to
executable on Linux.

I found freeeze.py as the only option so far. Couple of queries on
freeze:

1. Have anyone used the freeze utility and any experiences to share
from that?
2. Is there any enterprise-level exe-builder for python on linux
(ActiveState has nothing)?

Any other related commets are also welcome.

Thanks
Amit
Mar 31 '08 #1
7 3785
On Mar 31, 10:24 am, Amit Gupta <emaila...@gmai l.comwrote:
Hi

I am looking for a some tool that can convert python scripts to
executable on Linux.

I found freeeze.py as the only option so far. Couple of queries on
freeze:

1. Have anyone used the freeze utility and any experiences to share
from that?
2. Is there any enterprise-level exe-builder for python on linux
(ActiveState has nothing)?

Any other related commets are also welcome.

Thanks
Amit
I don't know about freeeze.py but for me, I've been using py2exe, and
also pyinstall quite often and they both work for me.
Mar 31 '08 #2
On Mar 31, 10:37 am, John Henry <john106he...@h otmail.comwrote :
On Mar 31, 10:24 am, Amit Gupta <emaila...@gmai l.comwrote:
Hi
I am looking for a some tool that can convert python scripts to
executable on Linux.
I found freeeze.py as the only option so far. Couple of queries on
freeze:
1. Have anyone used the freeze utility and any experiences to share
from that?
2. Is there any enterprise-level exe-builder for python on linux
(ActiveState has nothing)?
Any other related commets are also welcome.
Thanks
Amit

I don't know about freeeze.py but for me, I've been using py2exe, and
also pyinstall quite often and they both work for me.
Isnt py2exe for windows only?
I haven't looked at pyinstall.. Is it for linux?
Mar 31 '08 #3
On Mar 31, 10:38 am, Amit Gupta <emaila...@gmai l.comwrote:
On Mar 31, 10:37 am, John Henry <john106he...@h otmail.comwrote :
On Mar 31, 10:24 am, Amit Gupta <emaila...@gmai l.comwrote:
Hi
I am looking for a some tool that can convert python scripts to
executable on Linux.
I found freeeze.py as the only option so far. Couple of queries on
freeze:
1. Have anyone used the freeze utility and any experiences to share
from that?
2. Is there any enterprise-level exe-builder for python on linux
(ActiveState has nothing)?
Any other related commets are also welcome.
Thanks
Amit
I don't know about freeeze.py but for me, I've been using py2exe, and
also pyinstall quite often and they both work for me.

Isnt py2exe for windows only?
Not sure. I use it on windows.
I haven't looked at pyinstall.. Is it for linux?
It appears so - according to http://www.pyinstaller.org/
Mar 31 '08 #4
On Mar 31, 12:24 pm, Amit Gupta <emaila...@gmai l.comwrote:
Hi

I am looking for a some tool that can convert python scripts to
executable on Linux.

I found freeeze.py as the only option so far. Couple of queries on
freeze:

1. Have anyone used the freeze utility and any experiences to share
from that?
2. Is there any enterprise-level exe-builder for python on linux
(ActiveState has nothing)?

Any other related commets are also welcome.

Thanks
Amit
What about creating a setup.py and using the distutils command to
build rpms or tarballs?

http://docs.python.org/dist/built-dist.html

Mike
Mar 31 '08 #5
On Mar 31, 1:52 pm, Mike Driscoll <kyoso...@gmail .comwrote:
>
What about creating a setup.py and using the distutils command to
build rpms or tarballs?

http://docs.python.org/dist/built-dist.html

Mike
My quick look: The link you sent is under the header "Distributi ng
Python Modules". In my case, I have set of python-files that
altogether is part of one product-functionality. I would like to
package it and have it run standalone, even if the user does not have
python installed.

Ok, I guess build-dist can possibly achieve the same purpose (without
reading through the link you sent). So my question would be: why is
there pyinstaller, if this does the job. Is build-dist more low-level
and thus is over-kill for the kind of application I am looking for?:

Thanks
Mar 31 '08 #6
On Mar 31, 4:53 pm, Amit Gupta <emaila...@gmai l.comwrote:
On Mar 31, 1:52 pm, Mike Driscoll <kyoso...@gmail .comwrote:
What about creating a setup.py and using the distutils command to
build rpms or tarballs?
http://docs.python.org/dist/built-dist.html
Mike

My quick look: The link you sent is under the header "Distributi ng
Python Modules". In my case, I have set of python-files that
altogether is part of one product-functionality. I would like to
package it and have it run standalone, even if the user does not have
python installed.
Good point. I guess I missed the "one product-functionality"
requirement in your original post. Sorry for the noise!
>
Ok, I guess build-dist can possibly achieve the same purpose (without
reading through the link you sent). So my question would be: why is
there pyinstaller, if this does the job. Is build-dist more low-level
and thus is over-kill for the kind of application I am looking for?:

Thanks
PyInstaller is for converting something you've written in Python into
a binary for various OS's. When I read through the thread though, I
thought your requirements might include distributing the modules as
source too.

If you want to produce a binary for Macs, I've heard that py2app does
the job: http://pypi.python.org/pypi/py2app/

There's also cx_freeze, which is different than freeze.py:
http://www.cxtools.net/default.aspx?nav=cxfrlb

The last one is probably the best new advice I have to offer.

Mike
Apr 1 '08 #7
On Mar 31, 7:24 pm, Amit Gupta <emaila...@gmai l.comwrote:
Hi

I am looking for a some tool that can convert python scripts to
executable on Linux.

I found freeeze.py as the only option so far. Couple of queries on
freeze:

1. Have anyone used the freeze utility and any experiences to share
from that?
2. Is there any enterprise-level exe-builder for python on linux
(ActiveState has nothing)?

Any other related commets are also welcome.

Thanks
Amit
I've run into the same question and decided to keep a web page memo
about it:

http://www.freehackers.org/Packaging_a_python_program

I'll be happy to update it with feedback.

Philippe
Apr 1 '08 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
2624
by: Sandeep Gupta | last post by:
Hi, I've written a commercial application that uses Python scripts for some of the functionality. Installing the Python portion of the application requires me to first install Python, and then install the scripts. I'm looking for an easier way to install the Python portion. I've been referred to: http://www.mcmillan-inc.com/install1.html Which application would people recommend for creating a standalone
6
2977
by: uri bushey | last post by:
I have a Python program that is built on an infrastructure of quite a few other programs, but I would like to create a standalone nonetheless. It doesn't necesarily have to be its own executable, although this is the most attractive option - it could just mean distributing the entire python distribution with it in an installer or something. However, here is what I have called in my python file: Tkinter, and multiple Pmw widgets...
8
2032
by: Jan Danielsson | last post by:
Hello all, How do I make a python script actually a _python_ in unix:ish environments? I know about adding: #!/bin/sh ..as the first row in a shell script, but when I installed python on a NetBSD system, I didn't get a "python" executable; only a "python2.4"
37
2509
by: John Salerno | last post by:
I contacted my domain host about how Python is implemented on their server, and got this response: ------------------- Hello John, Please be informed that the implementation of python in our server is through mod_python integration with the apache. These are the steps needed for you to be able to run .py script directly
34
3973
by: Ben Sizer | last post by:
I've installed several different versions of Python across several different versions of MS Windows, and not a single time was the Python directory or the Scripts subdirectory added to the PATH environment variable. Every time, I've had to go through and add this by hand, to have something resembling a usable Python installation. No such problems on Linux, whether it be Mandrake/Mandriva, Fedora Core, or Kubuntu. So why is the Windows...
2
1548
by: walterbyrd | last post by:
I have heard about Pysco. But does create a single executable that can run without Python being installed? Or does that just compile the libraries?
0
9716
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9595
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10101
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9177
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6870
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5675
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4314
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3837
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3005
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.