-completly new- Exe question

Reply

Join Date: Apr 2008
Posts: 2
Reputation: killingcheese is an unknown quantity at this point 
Solved Threads: 0
killingcheese killingcheese is offline Offline
Newbie Poster

-completly new- Exe question

 
0
  #1
Apr 13th, 2008
I know that frets on fire was made with python, but a question i have had was whenever you save something in python idle it is a .py, and you cant run them unless you have python (and if they do, they can just edit your program)
installed, but how did frets on fire make theirs an exe.
Reply With Quote Quick reply to this message  
Join Date: Mar 2008
Posts: 1
Reputation: farsheed is an unknown quantity at this point 
Solved Threads: 0
farsheed farsheed is offline Offline
Newbie Poster

Re: -completly new- Exe question

 
0
  #2
Apr 13th, 2008
Use py2exe.
Reply With Quote Quick reply to this message  
Join Date: Apr 2008
Posts: 2
Reputation: killingcheese is an unknown quantity at this point 
Solved Threads: 0
killingcheese killingcheese is offline Offline
Newbie Poster

Re: -completly new- Exe question

 
0
  #3
Apr 13th, 2008
Thanks, its exactly what im looking for. But i need help getting it to work. I looked at their tutorial page, but it would be much better if they had a downloadable example. If someone could make a really quick example that would be a big help. Thanks
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 1,542
Reputation: Ene Uran has a spectacular aura about Ene Uran has a spectacular aura about 
Solved Threads: 173
Ene Uran's Avatar
Ene Uran Ene Uran is offline Offline
Posting Virtuoso

Re: -completly new- Exe question

 
0
  #4
Apr 13th, 2008
I think vegaseat had this posted some time ago, read the comments for instructions:
  1. # Py2Exe version 0.6.3 setup file for console programs.
  2. #
  3. # If this is a windows GUI application replace the last line with
  4. # windows = [{"script": 'myFile.py'}] )
  5. #
  6. # Enter the file name of your own .py code file in the last line,
  7. # lets say it's test1.py
  8. # so the last line should be: console = [{"script": 'test1.py'}] )
  9. # then save this program as p2e_test1.py to the same directory
  10. # where your code file is located.
  11. #
  12. # Now run p2e_test1.py ...
  13. #
  14. # Two subfolders will be created, called build and dist.
  15. # The dist folder contains your .exe file, MSVCR71.dll and
  16. # w9xpopen.exe (needed for os.popen() only)
  17. # Your .exe file contains your byte code, all needed modules and
  18. # the Python interpreter.
  19. # The MSVCR71.dll can be distributed, but is often already in the
  20. # system32 folder.
  21. # The build folder can be deleted.
  22.  
  23. from distutils.core import setup
  24. import py2exe
  25. import sys
  26.  
  27. # no arguments
  28. if len(sys.argv) == 1:
  29. sys.argv.append("py2exe")
  30.  
  31. # creates a standalone .exe file, no zip files
  32. setup( options = {"py2exe": {"compressed": 1, "optimize": 2, "ascii": 1, "bundle_files": 1}},
  33. zipfile = None,
  34. # replace myFile.py with your own code filename here ...
  35. console = [{"script": 'myFile.py'}] )
drink her pretty
Reply With Quote Quick reply to this message  
Join Date: Oct 2007
Posts: 14
Reputation: jaux is an unknown quantity at this point 
Solved Threads: 2
jaux's Avatar
jaux jaux is offline Offline
Newbie Poster

Re: -completly new- Exe question

 
0
  #5
Apr 13th, 2008
If I remembered right, there are some working sample setup.py's (console app, gui app, windows services app, etc.) installed with py2exe.

Take a look into py2exe's directory, you might find something really helpful.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the Python Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC