Coder Social home page Coder Social logo

huixiangufl / python-for-android Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 58.33 MB

Automatically exported from code.google.com/p/python-for-android

License: Apache License 2.0

Java 0.58% Makefile 2.15% C 47.46% Python 32.49% Shell 1.21% XSLT 0.02% Groff 0.91% CSS 0.01% Perl 2.58% HTML 9.75% C++ 0.88% Assembly 1.29% DIGITAL Command Language 0.42% XS 0.01% eC 0.01% Batchfile 0.08% Prolog 0.03% OpenEdge ABL 0.11% R 0.01% D 0.01%

python-for-android's Introduction

In order to build Py4A you first need to build Python for Android platform,
make sure you have all the dependencies needed for building python 2.6 for your
distro in Ubuntu run: sudo apt-get build-dep python2.6

In Ubuntu (i386) you need to run this before anything else:
export LDFLAGS="-L /usr/lib/i386-linux-gnu/"

pushd python-build
bash build.sh
popd

Then you need to update the references for the APK file
pushd python-build
python update-apk.py
popd

Next step is building a few Android libraries needed for Py4A to be built.
pushd android
pushd Utils
ant
popd
pushd Common
ant
popd
pushd InterpreterForAndroid
ant
popd
popd

Now build Py4A apk signing with debug key
pushd android/PythonForAndroid
mkdir libs
cp ../{Utils,Common,InterpreterForAndroid}/dist/*.jar libs
ant debug
popd

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.