Re: Compiling Python Programs for Windows Use

  • From: "Mike" <foxwarrior09@xxxxxxxxxxx>
  • To: <programmingblind@xxxxxxxxxxxxx>
  • Date: Tue, 13 Sep 2011 16:13:59 -0500

Rich, for a novice, I wouldn't call Py2Exe "simple," because yes a script can be complicated depending on the dependencies (libraries) that your application uses. I make this claim, even after reading e-mails from Jacob. While Jacob did not state this, he may agree that you have to do a lot of reading to learn how it all works. Something like NVDA even may be complex to distribute, depending on all of its dependencies. That is why I said in my initial e-mail, "Look at the needs of your app. It may be practical to ask your users to simply install Python to run it, rather than creating a binary." And yes, Googling py2exe is the best way to learn. Just know that mastering it will take time.


Mike

-----Original Message----- From: Rich De Steno
Sent: Tuesday, September 13, 2011 3:17 PM
To: programmingblind@xxxxxxxxxxxxx
Subject: Re: Compiling Python Programs for Windows Use

I never thought it would be so complicated to make an executable in
Python.  I assumed there would be a standard compiler that would take
care of it in a flash as I used to do in the old C DOS days.  I know
programs for the blind like the screen-reader, NVDA, and the Skype
talking interface, SkypeTalking, are both written in Python and widely
distributed as Windows executable.  My initial reading on Py2exe is
discouraging from any notion that this will be simple.


Rich De Steno


On 9/13/2011 12:34 AM, Jacob Kruger wrote:
I've started playing around with it, and you just need to get the right versions, etc. etc., and have a look at the tutorial material relating to the setup.py scripts, etc.

Only thing haven't really done with it thus far is try out too many target versions of windows to see where it will all run, and the one other thing is it seems to want you to also have something like VS.Net 2008 installed to get copies of the C++ runtime libraries included in outgoing dist folder, but anyway.

http://www.py2exe.org/index.cgi/Tutorial

Stay well

Jacob Kruger
Blind Biker
Skype: BlindZA
'...fate had broken his body, but not his spirit...'

----- Original Message ----- From: "Rich De Steno" <ironrock@xxxxxxxxxxx>
To: <programmingblind@xxxxxxxxxxxxx>
Sent: Tuesday, September 13, 2011 2:48 AM
Subject: Compiling Python Programs for Windows Use


I am just getting into Python. I have read that to compile a program for distribution, for Windows use you can use a compiler called Py2exe. First, is this the best way to compile a Python program? Second, is easily downloaded from a particular web site? I cannot get Source Forge to download it. If there is abetter way to compile, please let me know. Thanks.


Rich De Steno

--
Rich De Steno

__________
View the list's information and change your settings at //www.freelists.org/list/programmingblind


__________
View the list's information and change your settings at //www.freelists.org/list/programmingblind


__________
View the list's information and change your settings at
//www.freelists.org/list/programmingblind

__________
View the list's information and change your settings at //www.freelists.org/list/programmingblind

Other related posts: