View Single Post
rm42's Avatar
Posts: 963 | Thanked: 626 times | Joined on Sep 2009 @ Connecticut, USA
#28
Originally Posted by Dexter1759 View Post
Hi All,

This may be another stupid question, but I've read that Python runs with an "Interpreter" so it doesn't need compiling. Great, I can write something click Run (or Execute or whatever) and test my code straight away. But I'm missing a link somewhere, how does it work for the end user?

e.g. I could write a windows App in VB, and compile it to an exe (that either runs standalone or installs an App)

If I write an app or widget for the N900, I'd not expect a user to know how to run the script. So how does it get compiled and added to the app menu/widget menu/etc?

Sorry again if this seems a really silly question, but I've googled and must be googling using hte wrong terms or something because I can't find anything that explains that final step.

Many thanks in advance for any replies.
From the wave:
"The interpreter must, either be installed on the computer that needs to run the Python program, or the Python program must be packaged in conjunction with the interpreter so that it can be run by computers without Python."

So, in the case of the N900, users of your app will need to install Python on their device. That shouldn't be a problem since there are surely going to be many other apps that require Python.

On Windows, I have used a package called Py2exe to create standalone Python programs. What it does is package the interpreter with your app so that end users don't have to bother installing Python. If you want to learn more about it see here:

http://www.py2exe.org/

But, again, for the N900 that should not be needed.

As for adding your app to the applications menu, I haven't gotten there yet, but that should not be too hard to do.
__________________
-- Worse than not knowing is not wanting to know! --

http://temporaryland.wordpress.com/

Last edited by rm42; 2009-12-07 at 19:16.