<commit_before># P4A experiment

This is an experimental Python for Android APK builder based on the
pythonic toolchain of kivy-ios. Broad goals are:

- Support SDL2
- Support multiple bootstraps (user-chosen java + NDK code)
- Support python3
- Be a standalone Pypi module (?)

This is in a very early stage and is really just an experiment,
currently working to duplicate existing python-for-android
functionality. The following command will try to download and build
some recipes. It should duplicate the functionality of distribute.sh
(and you can build an apk with the result using build.py!), but the
code is currently bad and only the few essential recipes are
supported.

     python2 toolchain.py create --name=testproject --bootstrap=pygame --recipes=sdl,python2


# Dependencies

- Virtualenv
- Android SDK (link by setting the ANDROIDSDK environment variable)
- Android NDK (link by setting the ANDROIDSDK environment variable)
- Cython

Pip:
- appdirs
- colorama


# Known missing stuff from P4A

- Pymodules install
- Some recipes/components aren't stripped properly of doc etc.
- Downloaded file md5 and headers aren't checked
- Biglink is essential (the p4a disable option isn't implemented)
- Probably some other stuff


# Current status

Currently moving towards trying to build sdl2 + python. SDL2 alone
will build, but several python components need modification to work
with it.

If trying to build SDL2 with other stuff, you probably need SDL_image,
SDL_ttf and SDL_mixer as these don't have recipes yet (and unlike with
p4a probably don't need to be included in this repo).<commit_msg>Added debug info to readme<commit_after># P4A experiment

This is an experimental Python for Android APK builder based on the
pythonic toolchain of kivy-ios. Broad goals are:

- Support SDL2
- Support multiple bootstraps (user-chosen java + NDK code)
- Support python3
- Be a standalone Pypi module (?)

This is in a very early stage and is really just an experiment,
currently working to duplicate existing python-for-android
functionality. The following command will try to download and build
some recipes. It should duplicate the functionality of distribute.sh
(and you can build an apk with the result using build.py!), but the
code is currently bad and only the few essential recipes are
supported.

     python2 toolchain.py create --name=testproject --bootstrap=pygame --recipes=sdl,python2

Add the `--debug` option to any command to enable printing all the
debug information, including output of shell commands.

# Dependencies

- Virtualenv
- Android SDK (link by setting the ANDROIDSDK environment variable)
- Android NDK (link by setting the ANDROIDSDK environment variable)
- Cython

Pip:
- appdirs
- colorama


# Known missing stuff from P4A

- Pymodules install
- Some recipes/components aren't stripped properly of doc etc.
- Downloaded file md5 and headers aren't checked
- Biglink is essential (the p4a disable option isn't implemented)
- Probably some other stuff


# Current status

Currently moving towards trying to build sdl2 + python. SDL2 alone
will build, but several python components need modification to work
with it.

If trying to build SDL2 with other stuff, you probably need SDL_image,
SDL_ttf and SDL_mixer as these don't have recipes yet (and unlike with
p4a probably don't need to be included in this repo).
{'fraction_non_alphanumeric': 0.048343777976723366, 'fraction_numerical': 0.007162041181736795, 'mean_word_length': 4.329093799682035, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1903506', 'n_tokens_mistral': 922, 'n_tokens_neox': 870, 'n_words': 470}