Re: [Audyssey] python compiler
I get it. PYtexe is accessed through the command line. This should work, when I get home and test it. Thanks, Nick On 10/1/09, Thomas Ward wrote: > Hi nick, I think I need to explain this a bit clearer. As you probably > know Python is a scripting language and requires an interpretor to run. > Therefore it is not really compiled to a native Windows program as would > be the case if you used a language like C or C++. What py2exe really > does is it bundles the Python interpretor and your source code together > into an exe file, but it isn't compiled in the triditional sense of the > word. It is more like packaged in an executable archive. I hope that > makes sense. > Anyway, if you want to use py2exe to make an executable archive you'll > have to get use to working with the Windows command line for this. Most > python tools like that are command line only, not graphical > applications, so you have to be somewhat familiar with the Windows > command prompt to use them. Here is an overview how py2exe works. > First, download and install py2exe from > http://www.py2exe.org > and install the correct version for your interpretor. Make sure you get > the one that is for your version of the Python interpretor. Else you can > end up screwing things up a bit. > Second, you have to create a custom setup script for your application. > Generally this is easy, but for a newby this is an unexpected step. > Create a filecalled setup.py, and then you will write a script something > like this. For example let us just say the program is called Test. > > import setup > import py2exe > > setup (console=["Test.py"], zipfile=None) > > Once you have created and saved your setup script you now have to build > the Python exe archive via the command line. Generally you would type a > command like this in your source directory. > python setup.py py2exe --bundle 1 > If everything worked correctly you would have a file called Test.exe in > your dist directory. > > HTH > > > --- > Gamers mailing list __ Gamers@audyssey.org > If you want to leave the list, send E-mail to > gamers-unsubscr...@audyssey.org. > You can make changes or update your subscription via the web, at > http://audyssey.org/mailman/listinfo/gamers_audyssey.org. > All messages are archived and can be searched and read at > http://www.mail-archive.com/gam...@audyssey.org. > If you have any questions or concerns regarding the management of the list, > please send E-mail to gamers-ow...@audyssey.org. > -- website: Nickhelms.net sip phone number: 360-526-6509 Skype: Nickster919 twitter: Nickster919 --- Gamers mailing list __ Gamers@audyssey.org If you want to leave the list, send E-mail to gamers-unsubscr...@audyssey.org. You can make changes or update your subscription via the web, at http://audyssey.org/mailman/listinfo/gamers_audyssey.org. All messages are archived and can be searched and read at http://www.mail-archive.com/gam...@audyssey.org. If you have any questions or concerns regarding the management of the list, please send E-mail to gamers-ow...@audyssey.org.
Re: [Audyssey] python compiler
Hi nick, I think I need to explain this a bit clearer. As you probably know Python is a scripting language and requires an interpretor to run. Therefore it is not really compiled to a native Windows program as would be the case if you used a language like C or C++. What py2exe really does is it bundles the Python interpretor and your source code together into an exe file, but it isn't compiled in the triditional sense of the word. It is more like packaged in an executable archive. I hope that makes sense. Anyway, if you want to use py2exe to make an executable archive you'll have to get use to working with the Windows command line for this. Most python tools like that are command line only, not graphical applications, so you have to be somewhat familiar with the Windows command prompt to use them. Here is an overview how py2exe works. First, download and install py2exe from http://www.py2exe.org and install the correct version for your interpretor. Make sure you get the one that is for your version of the Python interpretor. Else you can end up screwing things up a bit. Second, you have to create a custom setup script for your application. Generally this is easy, but for a newby this is an unexpected step. Create a filecalled setup.py, and then you will write a script something like this. For example let us just say the program is called Test. import setup import py2exe setup (console=["Test.py"], zipfile=None) Once you have created and saved your setup script you now have to build the Python exe archive via the command line. Generally you would type a command like this in your source directory. python setup.py py2exe --bundle 1 If everything worked correctly you would have a file called Test.exe in your dist directory. HTH --- Gamers mailing list __ Gamers@audyssey.org If you want to leave the list, send E-mail to gamers-unsubscr...@audyssey.org. You can make changes or update your subscription via the web, at http://audyssey.org/mailman/listinfo/gamers_audyssey.org. All messages are archived and can be searched and read at http://www.mail-archive.com/gam...@audyssey.org. If you have any questions or concerns regarding the management of the list, please send E-mail to gamers-ow...@audyssey.org.
Re: [Audyssey] python compiler
Hi Nick, that depends on the application. If you plan to write games you will need to download and install additional libraries such as PyGame for starts. HTH Nick Helms wrote: thank you thomas! Actualy, I figured it out. My problem was that I had told notepad to save the file as a .txt rather then "All files" .py Thanks for your help! As far as the librarys, I have the python inturpretor installed, wich I used to run this the application I just wrote. Is that all I need as well as the source file for py2exe to work? --- Gamers mailing list __ Gamers@audyssey.org If you want to leave the list, send E-mail to gamers-unsubscr...@audyssey.org. You can make changes or update your subscription via the web, at http://audyssey.org/mailman/listinfo/gamers_audyssey.org. All messages are archived and can be searched and read at http://www.mail-archive.com/gam...@audyssey.org. If you have any questions or concerns regarding the management of the list, please send E-mail to gamers-ow...@audyssey.org.
Re: [Audyssey] python compiler
also how do I run py2exe, as I'm not seeing it in the start menu, nor in my python submenu? Thanks much, Nick On 10/1/09, Nick Helms wrote: > thank you thomas! Actualy, I figured it out. My problem was that I had > told notepad to save the file as a .txt rather then "All files" .py > Thanks for your help! > As far as the librarys, I have the python inturpretor installed, wich > I used to run this the application I just wrote. Is that all I need as > well as the source file for py2exe to work? > > > On 10/1/09, Thomas Ward wrote: >> Hi Nick, generally for writing code you will just want to use an off >> the shelf text editor like notepad and save it as a *.py file. As far as >> creating a Windows executable you will need to use py2exe which will >> compile your Python sorce as a Windows program, and you will have to >> include the Python runtime libraries with the program as well. >> >> HTH >> >> Nick Helms wrote: >>> Ok all, >>> I have decided to learn the python programming language. >>> My only issue now is, how do I compile my code since I understand that >>> it is not possible to do it through the inturpritor, as it runs your >>> code as you type it, without giving you the opportunity to save your >>> project. >>> my question is, are there any good python compilers? And also, is >>> there a way to turn .py(compiled python programs) in to .exe files? >>> Thanks, >>> Nick >>> >>> --- >>> Gamers mailing list __ Gamers@audyssey.org >>> If you want to leave the list, send E-mail to >>> gamers-unsubscr...@audyssey.org. >>> You can make changes or update your subscription via the web, at >>> http://audyssey.org/mailman/listinfo/gamers_audyssey.org. >>> All messages are archived and can be searched and read at >>> http://www.mail-archive.com/gam...@audyssey.org. >>> If you have any questions or concerns regarding the management of the >>> list, >>> please send E-mail to gamers-ow...@audyssey.org. >>> >>> >> >> >> --- >> Gamers mailing list __ Gamers@audyssey.org >> If you want to leave the list, send E-mail to >> gamers-unsubscr...@audyssey.org. >> You can make changes or update your subscription via the web, at >> http://audyssey.org/mailman/listinfo/gamers_audyssey.org. >> All messages are archived and can be searched and read at >> http://www.mail-archive.com/gam...@audyssey.org. >> If you have any questions or concerns regarding the management of the >> list, >> please send E-mail to gamers-ow...@audyssey.org. >> > > > -- > website: Nickhelms.net > sip phone number: 360-526-6509 > Skype: Nickster919 > twitter: Nickster919 > -- website: Nickhelms.net sip phone number: 360-526-6509 Skype: Nickster919 twitter: Nickster919 --- Gamers mailing list __ Gamers@audyssey.org If you want to leave the list, send E-mail to gamers-unsubscr...@audyssey.org. You can make changes or update your subscription via the web, at http://audyssey.org/mailman/listinfo/gamers_audyssey.org. All messages are archived and can be searched and read at http://www.mail-archive.com/gam...@audyssey.org. If you have any questions or concerns regarding the management of the list, please send E-mail to gamers-ow...@audyssey.org.
Re: [Audyssey] python compiler
thank you thomas! Actualy, I figured it out. My problem was that I had told notepad to save the file as a .txt rather then "All files" .py Thanks for your help! As far as the librarys, I have the python inturpretor installed, wich I used to run this the application I just wrote. Is that all I need as well as the source file for py2exe to work? On 10/1/09, Thomas Ward wrote: > Hi Nick, generally for writing code you will just want to use an off > the shelf text editor like notepad and save it as a *.py file. As far as > creating a Windows executable you will need to use py2exe which will > compile your Python sorce as a Windows program, and you will have to > include the Python runtime libraries with the program as well. > > HTH > > Nick Helms wrote: >> Ok all, >> I have decided to learn the python programming language. >> My only issue now is, how do I compile my code since I understand that >> it is not possible to do it through the inturpritor, as it runs your >> code as you type it, without giving you the opportunity to save your >> project. >> my question is, are there any good python compilers? And also, is >> there a way to turn .py(compiled python programs) in to .exe files? >> Thanks, >> Nick >> >> --- >> Gamers mailing list __ Gamers@audyssey.org >> If you want to leave the list, send E-mail to >> gamers-unsubscr...@audyssey.org. >> You can make changes or update your subscription via the web, at >> http://audyssey.org/mailman/listinfo/gamers_audyssey.org. >> All messages are archived and can be searched and read at >> http://www.mail-archive.com/gam...@audyssey.org. >> If you have any questions or concerns regarding the management of the >> list, >> please send E-mail to gamers-ow...@audyssey.org. >> >> > > > --- > Gamers mailing list __ Gamers@audyssey.org > If you want to leave the list, send E-mail to > gamers-unsubscr...@audyssey.org. > You can make changes or update your subscription via the web, at > http://audyssey.org/mailman/listinfo/gamers_audyssey.org. > All messages are archived and can be searched and read at > http://www.mail-archive.com/gam...@audyssey.org. > If you have any questions or concerns regarding the management of the list, > please send E-mail to gamers-ow...@audyssey.org. > -- website: Nickhelms.net sip phone number: 360-526-6509 Skype: Nickster919 twitter: Nickster919 --- Gamers mailing list __ Gamers@audyssey.org If you want to leave the list, send E-mail to gamers-unsubscr...@audyssey.org. You can make changes or update your subscription via the web, at http://audyssey.org/mailman/listinfo/gamers_audyssey.org. All messages are archived and can be searched and read at http://www.mail-archive.com/gam...@audyssey.org. If you have any questions or concerns regarding the management of the list, please send E-mail to gamers-ow...@audyssey.org.
Re: [Audyssey] python compiler
Hi Nick, generally for writing code you will just want to use an off the shelf text editor like notepad and save it as a *.py file. As far as creating a Windows executable you will need to use py2exe which will compile your Python sorce as a Windows program, and you will have to include the Python runtime libraries with the program as well. HTH Nick Helms wrote: Ok all, I have decided to learn the python programming language. My only issue now is, how do I compile my code since I understand that it is not possible to do it through the inturpritor, as it runs your code as you type it, without giving you the opportunity to save your project. my question is, are there any good python compilers? And also, is there a way to turn .py(compiled python programs) in to .exe files? Thanks, Nick --- Gamers mailing list __ Gamers@audyssey.org If you want to leave the list, send E-mail to gamers-unsubscr...@audyssey.org. You can make changes or update your subscription via the web, at http://audyssey.org/mailman/listinfo/gamers_audyssey.org. All messages are archived and can be searched and read at http://www.mail-archive.com/gam...@audyssey.org. If you have any questions or concerns regarding the management of the list, please send E-mail to gamers-ow...@audyssey.org. --- Gamers mailing list __ Gamers@audyssey.org If you want to leave the list, send E-mail to gamers-unsubscr...@audyssey.org. You can make changes or update your subscription via the web, at http://audyssey.org/mailman/listinfo/gamers_audyssey.org. All messages are archived and can be searched and read at http://www.mail-archive.com/gam...@audyssey.org. If you have any questions or concerns regarding the management of the list, please send E-mail to gamers-ow...@audyssey.org.
[Audyssey] python compiler
Ok all, I have decided to learn the python programming language. My only issue now is, how do I compile my code since I understand that it is not possible to do it through the inturpritor, as it runs your code as you type it, without giving you the opportunity to save your project. my question is, are there any good python compilers? And also, is there a way to turn .py(compiled python programs) in to .exe files? Thanks, Nick --- Gamers mailing list __ Gamers@audyssey.org If you want to leave the list, send E-mail to gamers-unsubscr...@audyssey.org. You can make changes or update your subscription via the web, at http://audyssey.org/mailman/listinfo/gamers_audyssey.org. All messages are archived and can be searched and read at http://www.mail-archive.com/gam...@audyssey.org. If you have any questions or concerns regarding the management of the list, please send E-mail to gamers-ow...@audyssey.org.