Code Monkey home page Code Monkey logo

qpython3-toolchain's Introduction

QPython Python core toolchain

This is an experimental set of build scripts that will cross-compile the specific Python Core for QPython / QPython3.

Prerequisites

Building requires:

  1. Linux or macOS. Ubuntu 14.04, Arch Linux and macOS Sierra tested.
  2. Android NDK r16 beta 2 installed and environment variable $ANDROID_NDK points to its root directory. NDK r14 or r15 may work yet not fully tested. NDk r13 or below is not supported.
  3. git and python in $PATH. It's recommended to use the latest git-master to build python. Here are some ways to install the python:
  • For Arch Linux users, install python-git package from AUR
  • For Homebrew users, run brew install python3 --HEAD
  • For MacPorts users, add my MacPorts overlay to sources.conf and run sudo port install python37
  • For other users, install 3.8 from pyenv

Running requires:

  1. Android 5.0 (Lollipop, API 21) or above
  2. arm, arm64, x86 or x86-64
  3. A busybox binary at /data/local/tmp/busybox

Build

  1. make clean for good measure.
  2. For every API Level/architecture combination you wish to build for:
    • Edit env to match your (desired) configuration.
    • make to build everything!

Installation

TBD

SSL/TLS

SSL certificates have old and new naming schemes. Android uses the old scheme yet the latest OpenSSL uses the new one. If you got CERTIFICATE_VERIFY_FAILED when using SSL/TLS in Python, you need to generating certificate names of the new scheme:

python ./python3/tools/c_rehash.py

Check SSL/TLS functionality with:

python ./python3/tools/ssl_test.py

Known Issues

Please file a issue to the issue list

Others

Folked from Python3-Android

Thanks the author and contributor: Shizmob,(Chih-Hsuan Yen)[https://github.com/yan12125]

qpython3-toolchain's People

Contributors

mmariani avatar riverfor avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.