Skip to content

Commit 2458323

Browse files
committed
Added distribute.sh fake interface
1 parent 576e69c commit 2458323

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

distribute.sh

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/usr/bin/env sh
2+
3+
# This file is just a shim to report an error messaage if some tool
4+
# tries to run the old python-for-android.
5+
6+
# An alternative would be to implement argument handling and pass
7+
# things to the new toolchain so that it works the same as before, but
8+
# that would be harder.
9+
10+
11+
cat <<EOF
12+
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
13+
### ERROR ###
14+
You are trying to run an old version of python-for-android via distribute.sh. However, python-for-android has been rewritten and no longer supports the distribute.sh interface.
15+
16+
If you are using buildozer, you should:
17+
- upgrade buildozer to the latest version (at least 0.30)
18+
- delete the .buildozer folder in your app directory (the same directory that has your buildozer.spec)
19+
- run buildozer again as normal
20+
21+
If you are not using buildozer, see https://github.com/kivy/python-for-android/blob/master/README.md for instructions on using the new python-for-android toolchain. Alternatively, you can get the old toolchain from the 'old_toolchain' branch at https://github.com/kivy/python-for-android/tree/old_toolchain .
22+
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
23+
EOF

0 commit comments

Comments
 (0)