# Install distribute
# Run 'curl http://python-distribute.org/distribute_setup.py | venv/bin/python'
# Cwd /home/ubuntu/workspace/appMD/.buildozer
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
# Install requirement git+https://github.com/kivymd/KivyMD.git in virtualenv
# Run 'pip install --download-cache=/home/ubuntu/.buildozer/cache --target=/home/ubuntu/workspace/appMD/.buildozer/applibs git+https://github.com/kivymd/KivyMD.git'
# Cwd /home/ubuntu/workspace/appMD/.buildozer
Usage:
pip install [options] <requirement specifier> [package-index-options] ...
pip install [options] -r <requirements file> [package-index-options] ...
pip install [options] [-e] <vcs project url> ...
pip install [options] [-e] <local project path> ...
pip install [options] <archive url/path> ...
no such option: --download-cache
# Command failed: pip install --download-cache=/home/ubuntu/.buildozer/cache --target=/home/ubuntu/workspace/appMD/.buildozer/applibs git+https://github.com/kivymd/KivyMD.git
I found that the issue was that the pip changed its automated download cache and buildozer just has to remove it from __init__.py. I'll post the solution when I'll solve it
self.cmd('pip install --target={} {}'.format( #self.global_cache_dir, self.applibs_dir, module), self.applibs_dir, module
to
self.cmd('pip install --target={} {}'.format( self.applibs_dir, module), env=self.env_venv, cwd=self.buildozer_dir)
with the command
sudo pico /usr/local/lib/python2.7/dist-packages/buildozer/init.py