adding --service to buildozer commands

629 views
Skip to first unread message

Amin Etesamian

unread,
Mar 17, 2017, 12:25:27 AM3/17/17
to kivy-...@googlegroups.com
Hey

What is the proper way of adding a --service to buildozer commands?
https://python-for-android.readthedocs.io/en/latest/services/
here in the second method, it says add that command to python for android

now in buildozer, when I try
buildozer android_new debug deploy run p4a --service:/path/to/serivce.py

it raises
usage: toolchain.py [-h]
                    {recipes,bootstraps,clean_all,clean_dists,clean_bootstrap_builds,clean_builds,clean,clean_recipe_build,clean_download_cache,export_dist,apk,create,archs,distributions,delete_dist,sdk_tools,adb,logcat,build_status}
                    ...
toolchain.py: error: too few arguments
whats wrong with my command?
thanks

Alexander Taylor

unread,
Mar 17, 2017, 11:33:43 PM3/17/17
to Kivy users support
Buildozer does not support passing arguments directly to python-for-android, and I'm not sure if it has a syntax for services in the buildozer.spec. If it doesn't, you could open an issue on the buildozer github page about it.

John Buckley

unread,
Apr 29, 2017, 5:39:07 AM4/29/17
to Kivy users support
I couldn't find anything on this, but the latest buildozer has a service line -

https://raw.githubusercontent.com/kivy/buildozer/master/buildozer/default.spec

which is fairly self explanatory

# (list) List of service to declare
#services = NAME:ENTRYPOINT_TO_PY,NAME2:ENTRYPOINT2_TO_PY

Also worth noting the path syntax which is clarified here:

https://github.com/kivy/python-for-android/issues/1020

services = myservice:./service/main.py

if you have a service folder in your current directory
Reply all
Reply to author
Forward
0 new messages