| | |
Py2exe
![]() |
•
•
Join Date: Oct 2008
Posts: 45
Reputation:
Solved Threads: 6
I'll assume you have already read the tutorial at:
http://www.py2exe.org/index.cgi/Tutorial
basically, once you have py2exe installed you need to make a script to build the exe. Make a file called setup.py in the directory with the python file you want to make an exe out of. put the following inside setup.exe:
replacing yourscript.py with your scripts name.
then run it from the command line with
If it completes succesfully you should now have an exe in your folder.
http://www.py2exe.org/index.cgi/Tutorial
basically, once you have py2exe installed you need to make a script to build the exe. Make a file called setup.py in the directory with the python file you want to make an exe out of. put the following inside setup.exe:
Python Syntax (Toggle Plain Text)
from distutils.core import setup import py2exe setup(console=['yourscript.py'])
replacing yourscript.py with your scripts name.
then run it from the command line with
Python Syntax (Toggle Plain Text)
python setup.py py2exe
Last edited by tyincali; Oct 28th, 2008 at 1:02 pm.
If your using a GUI you may want to take a look at this piece of code:
http://www.daniweb.com/forums/post623822-10.html
http://www.daniweb.com/forums/post623822-10.html
Make it idiot proof and someone will make a better idiot.
Check out my Site | and join us on IRC | Python Specific IRC
Check out my Site | and join us on IRC | Python Specific IRC
![]() |
Similar Threads
- need a help regarding "setup" in pyton using py2exe (Python)
- Question about PY2EXE... (Python)
- wxpython and py2exe (Python)
- Py2exe and Jython - Please help me! (Python)
- Py2exe help (Python)
Other Threads in the Python Forum
- Previous Thread: Python
- Next Thread: Python and Unicode
| Thread Tools | Search this Thread |
alarm ansi anydbm app assignment backend beginner binary bluetooth character cipher cmd coordinates curves customdialog cx-freeze data decimals development directory exe feet file float format function generator getvalue gnu halp handling heads homework http ideas input ip itunes java keycontrol leftmouse line linux list lists loop maintain maze millimeter module mouse number numbers output parsing path pointer prime programming push py2exe pygame pymailer python queue random recursion recursive schedule screensaverloopinactive script slicenotation sqlite ssh statistics string strings sudokusolver text thread time tlapse tooltip tuple type ubuntu unicode url urllib urllib2 variable ventrilo vigenere web webservice wikipedia write wxpython xlib xlwt






