Join Now
Quality Rating:
  • Currently 5.0 / 5
(5.0 / 5 - 1 vote cast)
Expertise Level:
  • Currently 3.0 / 5
(3.0 / 5 - 1 vote cast)

This page was last modified 11:50, 25 April 2008.

How to make py to sis for 3rd Editon devices

From Forum Nokia Wiki

This article is about converting Python script files (.py) to symbian installation files (.sis) for S60 3rd Edition devices.

Conversion of .py to .sis files for 3rd edition devices can be done by using a tool called ensymble by jethro.fn

Currently the latest version of ensymble that is available is Ensymble 0.26.

The Readme for the same could be found here The detailed installation instructions can be found in the readme link.

The following are the steps to make py -> sis files


1) Go to http://www.nbl.fi/jussi.ylanen/ensymble.html and download a suitable pre-squeezed version of Ensymble for your version of Python. Put the script in some suitable directory, e.g. ~/bin (if using a Unix-like system). Rename it to ensymble_python.py for the following commands to work (Or use the full name of the file in the commands instead of ensymble_python.py )


2a) On Unix-like systems (Linux, OS X), make the downloaded script runnable:


$ chmod +x ensymble_python.py

2b) On Windows, download the Stunnel OpenSSL binaries (openssl.zip) and extract them somewhere, e.g. C:\OpenSSL\bin. Then add that directory to your command search path: My Computer->Properties->Advanced->Environment Variables->System Variables->Path. Only newly opened Command Prompt windows will use the new path!


3a) On Unix-like systems, simply run the Ensymble script (type everything on one line):

$ ensymble_python.py py2sis --uid=0xfxxxxxxx --icon=myicon.svg
--appname="MyApp" --shortcaption="My App." --caption="My Application"
--version=1.2.3 --verbose myapp.py

3b) On Windows, run the Ensymble script using a Python interpreter (type everything on one line):

> python ensymble_python.py py2sis --uid=0xfxxxxxxx
--icon=myicon.svg --appname="MyApp"  --shortcaption="My App."
--caption="My Application" --version=1.2.3 --verbose myapp.py

If your application needs network connectivity or other special capabilities, there is the --caps option. For short help on options, type:

ensymble_python.py py2sis -h

Note: Ensymble creates selfsigned applications with its default certificate if no developer certificate is mentioned in the command line.

If the applications makes use of any other special capabilities, it needs to be signed by dev cert to be installed correctly on a mobile device. The selfsigned application obtained from ensymble could be also signed using the Open Signed Online at Symbiansigned.com

For 1st and 2nd edition devices, to convert python scripts to installable files, use the Py2sis tool

Instructions to make standalone applications on 1st and 2nd Edition devices

 
Powered by MediaWiki