Convert Python scripts to EXE
|
|
| DO NOT TRY THIS AT HOME : Rotteneggs.com text files and message bases are for INFORMATIONAL PURPOSES ONLY. DO NOT undertake any project based upon any information obtained from this or any other web site.We are not responsible for, nor do we assume any liability for, damages resulting from the use of any information on this site. |
|
|
|
(73 votes) Published: Jun 08, 2008 3:34 p.m. Viewed 318 times |
This guide will show you how to convert your Python 5cripts into EXEs.
Although it may not be the most efficient way to distribute your program, it’s the easiest. Your basically just packing all the Python libraries/binaries along with your 5cript.
First Step, Download Py2exe:
http://sourceforge.net/project/showfiles.php?group_id=15583
Second Step:
Go into command prompt, navigate to your Python directory, type the following:
Quote: python setup.py install
Third Step:
Open IDLE, Make a new 5cript named setup.py, type in the following:
Quote: from distutils.core import setup
import py2exe
setup(console=[’5criptNAME.py’])
Where 5criptNAME is, insert the name of your 5cript.
Fourth Step:
Go back to command prompt, navigate to your Python directory and type the following:
Quote: python setup.py py2exe
Fifth Step:
Go to the dist directory in your Python folder and your EXE will be there! Run it and enjoy! |
|
|
|

 | Jun 08, 2008 3:42 pm - One vote and its a 5.
I didn’t self vote. |

 | Jun 08, 2008 3:44 pm - Why is it that you can say 5cripts in the title but not in the egg itself? |

 | Jun 08, 2008 3:45 pm - Idk why it put in ’5cripts’
RE is fucked up, I previewed it and it did that, I went back and it is indeed a S not a 5. So Idk. |

 | Jun 08, 2008 4:16 pm - One star? Wtf? |

 | Jun 08, 2008 4:41 pm - Don’t look at me, I gave it a 4* |

 | Jun 08, 2008 5:41 pm - lol thats fucked up. anyways
isnt useful to me cuz ive had more than enough programming for a lifetime.
still nice egg. might i ask why tho python and not something more popular? |

 | Jun 08, 2008 5:48 pm - Python is an EXCELLENT programming language and I get asked this question many times a week. |

 | Jun 08, 2008 5:49 pm - It automatically changes to 5cript instead of script so someone can’t run a script using VB, or something.
* |

 | Jun 08, 2008 7:23 pm - [bullshit]Python is an EXCELLENT programming language and I get asked this question many times a week.[/bullshit] |

 | Jun 08, 2008 8:03 pm - fives good egg make more |

 | Jun 10, 2008 5:55 pm - wont ever use but if i do ever this could come in handy
5* |

 | Jun 13, 2008 7:40 pm - Five stars, very nice. Well written, good pics, explanation, etc. And yes - Python does have it’s advantages. It’s not a very difficult language to learn, it can do a fair bit, and it can be used with various different OSs. |

 | Jun 18, 2008 11:45 am - Holy shit, you posted a Python compiler? As an egg? Just go. Go far away.
And Python is good, Whitekong, and I’m sure there’s a bunch of noobs out there who don’t know how to compile Python, so they ask their resident "geek" (this cunt) how to do it. | |
|