Directly Executable Files in Python

Ethan Furman ethan at stoneleaf.us
Tue Mar 29 07:53:03 EDT 2011


harrismh777 wrote:
> Chris Rebert wrote:
>> Yes. py2exe is a tool which generates such Windows executables:
>> http://www.py2exe.org/
> 
> Interesting... but it can't possibly be creating .exe files 
> (compiling)...

Yes and no.  The python program is not being compiled.  The Python 
system, along with all the necessary libraries and support .py files, 
are combined into a .exe loader.  When the .exe is run it extracts the 
Python interpreter, makes all the other files available, and then starts 
it running.*

~Ethan~

*The details are not exact, but this is the general idea.



More information about the Python-list mailing list