(This Website is created and managed by Pankaj Nathani)
Installable binary PyS60 packages have two version numbers:
Different releases of the S60 platform require different builds of PyS60. You must use a build of PyS60 that is compatible with the S60 version of your phone and your S60 SDK.
Switch on Bluetooth on the Phone. Launch the "Bluetooth File Exchange" utility application on the Mac. Pair with the phone, and test the Bluetooth connection by pushing over some small text file or sound. Then choose the "Browse Device" command, and browse drive E: on the phone. You can now use the utility to create a "Python" folder on the Phone's E: drive and then to push your .py source files to the phone.
Problems are : no "browse device" capability (maybe I don't know how), and the phone don't recognize .py send over bluetooth as a special file. You can not specify neither where the message will be stored, nor what to do whith it.
Solution : use a file format which allow you to do that sort of thing.
Steps (Mandriva/Gnome using standard Gnome config: nautilus, file-roller, gnome-bluetooth) :
1. on the phone, create a "Python" folder on the memory card (phone's E: drive) with the phone's file manager;
2. on the computer, compress your '.py' file as a ZIP file (nautilus: just right click on the file and choose the 'compress' menu entry; default parameters should be ok);
3. send the zip to your phone (nautilus: right click, choose "send to", then select your phone in the bluetooth part);
4. on the phone, open the message. "ZIP Manager" application automatically handles it: "open"/"copy". Choose "open", select you .py in the uncompressed archive, and use the nokia "option" key to display the contextual menu : use the "extract" menu entry. You can now browse your phone's folders, to save the file in your "Python" folder.
That's it (and you can now suppress the bluetooth message).
Connect the miniSD card to a PC (windows or Mac). Create a directory, such as Python or Python/Libs or whatever. Copy python scripts (and libraries) to the directory. Put card in phone. It will show up as e: drive. In python, add the directory to the search path:
These scripts can be used as libraries and imported as usual.
The miniSD cards can be placed into the miniSD to SD holder and this can be placed in a USB compact flash card reader, or one can get a usb dongle that directly takes a miniSD card (I got one from ATP -- it also came with a 1 GB miniSD card and the USB reader)
You can also directly download the software on your phone and install it without using a PC. The steps are as following:
1. Download Python runtime for S60. Installation will start automatically
2. Choose if you want to install on the phone memory or memory card
3. Download PythonScriptShell package. Again, intallation will start automatically.
4. Choose the same media (phone or memory card) as for the runtime package.
5. Enjoy Python on your S60!
Typically you would want to install the SDK for the same S60 version as your phone runs, but if you want to experiment you can install any version of the SDK you want (as long as PyS60 supports it, that is).
For S60 3rd Edition development use the Maintenance Release SDK.