[Tutor] Compile py to exe in ubuntu
Andreas Kostyrka
andreas at kostyrka.org
Thu Feb 11 13:02:07 CET 2010
Am Donnerstag, 11. Februar 2010 12:44:48 schrieb Harya Dananjaya:
> On 11/02/10 17:34, Alan Gauld 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, 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. And not all person is programmer, so he don't want to know
> about programming, he just want to use the program.
Well, compiling it to a binary would not solve the problem.
1.) either you dynamically link the libraries. Then the user needs to have
these installed.
2.) or you statically link the libraries. Then you get the same problem,
slightly different: While the libraries are in the binary (which is a bad
thing for many reasons, e.g. security fixes do not get applied this way), you
can still have an environment mismatch, e.g. if your library expects services,
file paths, and so on.
The correct way to package a Linux program is to create a package for the
distributions you want to support, and provide the source code and a README
for all others.
This way you can support users that are computer illiterate by making the
package system ensure that all dependencies are available (and you can
customize your app for the distribution if needed), and computer literate
people can just read your README.
If installing a package is to complicated for your target users, your only
plausible strategy would be to make it a webapp, sorry.
Andreas
>
> Harya Dananjaya
>
> _______________________________________________
> Tutor maillist - Tutor at python.org
> To unsubscribe or change subscription options:
> http://mail.python.org/mailman/listinfo/tutor
>
More information about the Tutor
mailing list