diff --git a/android/TriblerService/build.sh b/android/TriblerService/build.sh index ebe6131425b..dd1608b928d 100755 --- a/android/TriblerService/build.sh +++ b/android/TriblerService/build.sh @@ -4,8 +4,7 @@ set -e export PATH="~/.local/bin/:$PATH" -#echo Get the latest P4A -#pip install --user --upgrade git+https://github.com/kivy/python-for-android.git +#./reinstall_p4a.sh #copy bootstraps and recipes cp -R bootstraps ~/.local/lib/python2.7/site-packages/pythonforandroid/ diff --git a/android/TriblerService/reinstall_p4a.sh b/android/TriblerService/reinstall_p4a.sh new file mode 100644 index 00000000000..3adf8655838 --- /dev/null +++ b/android/TriblerService/reinstall_p4a.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +set -e + +pip uninstall python-for-android +rm -rf ~/.local/lib/python2.7/site-packages/pythonforandroid/bootstraps +rm -rf ~/.local/lib/python2.7/site-packages/pythonforandroid/recipes + +echo Get the latest P4A +pip install --user --upgrade git+https://github.com/brussee/python-for-android.git