[Tutor] Compile py to exe in ubuntu

Alan Gauld alan.gauld at btinternet.com
Thu Feb 11 23:00:58 CET 2010


"Harya Dananjaya" <dananzoff at gmail.com> wrote 

>> What would you do with Java? It too is cross platform but requires a 
>> JVM to be installed on every platform. Python is similar.
>>
> OK, but python need 3rd praties library, 

No, you can write very sophisticated Python apps using just 
the standard library. Equally many Java apps require 3rd party 
libraries. There really is no difference between the two.

> and may be the the user don't  know about the 3rd party libraries, 
> and don't know how to install it on his computer. 

But you can wrte an installer that installs the 3rd party libraries 
without compiling the script to an 'exe'. And may 'exe's require 
third party libraries - especially on Windows where  installing 
an exe along with a bunch of DLLs is normal.

> And not all person is programmer, so he don't want to know 
> about programming, he just want to use the program.

They shouldn't need to know about prrogramming to run an 
installer. I think you are confusing an install program with a 
compiler. A good installer will check that Python is installed
(and that it is the minimum version), install the scripts needed
(including modules), install any third party libraries as needed 
(in other words check to see if you can find them first) and 
add things like help files and readme documents. Finally 
it should offer to place an icon/entry in the start menu or desktop
or where-ever is normal for the OS.

But none of that requires the application to be an executable.

-- 
Alan Gauld
Author of the Learn to Program web site
http://www.alan-g.me.uk/



More information about the Tutor mailing list