Skip to content

Latest commit

 

History

History
42 lines (32 loc) · 1.11 KB

README.md

File metadata and controls

42 lines (32 loc) · 1.11 KB

BlackBerry 10 Python port

Current status

  • Python 3.2.2 from BlackBerry building and working fine in the Berrymuch prefix

Roadmap

  • Adapt the patchset for Python 3.4
  • Bundle into Berrymuch

Development

Cross-compilation for ARM

  • Get an OS supported by the BlackBerry Native SDK (we recommend 32-bit Ubuntu 16.04)
  • Install the BlackBerry Native SDK
  • Install a few other packages:
    sudo apt install mercurial python
    
  • Clone this repository and run:
    source ~/path/to/bbndk/bbndk_env.sh
    cd Python-3
    ./build.sh
    

Running on Berrymuch

  • Package it up:
    cd nto-armv7/accounts/1000/shared/documents/clitools
    zip -yr python-3.2.zip .
    
  • Transfer the package to your Berrymuch device and install with pbpkgadd
  • Add to your ~/.profile:
    export PYTHONPATH="/accounts/1000/shared/documents/clitools/lib/python3.2:/accounts/1000/shared/documents/clitools/lib/python3.2/lib-dynload"
    
  • Enjoy