Py2sis

From MoDe

Using Py2Sis


py2sis is a utility for packaging a Python script as a SIS file to be installed in the Symbian Series 60 2nd edition devices. py2sis comes with the Python for Series 60 SDK installation package.

Use the command line utility in the following way: py2sis [sisfile] [--uid=0x12345678] [--appname=myapp] [--presdk20] giving the path to the script or directory as parameter. If you are packaging a whole directory, the directory must contain a file named default.py which will be used as the main script.

py2sis uses the command line tools from the Symbian SDK, so the SDK needs to be installed and properly configured. This means that the makesis and uidcrc utilities need to be in your system path. By default, the SIS file is created in the current working directory, but optionally you can specify the path where you want to save the resulting SIS with the sisfile parameter.

Example: py2sis myscript.py c:\mysis.sis

All Symbian applications need to have an UID, which you can provide from the command line using the --uid switch. The UID can also be embedded in the main script by including the line:

  1. SYMBIAN_UID = 0x01234567

The name of the application is taken from the source name, but the name can also be specified using the --appname switch.


Jurgen also has instructions on how to do this [[1] (http://www.mobilenin.com/pys60/info_standalone_application.htm)]