diff --git a/buildozer/__init__.py b/buildozer/__init__.py index 5797fdb9b..ac18776a7 100644 --- a/buildozer/__init__.py +++ b/buildozer/__init__.py @@ -451,6 +451,9 @@ def check_application_requirements(self): ''' requirements = self.config.getlist('app', 'requirements', '') target_available_packages = self.target.get_available_packages() + if target_available_packages is True: + # target handles all packages! + return # remove all the requirements that the target can compile onlyname = lambda x: x.split('==')[0] diff --git a/buildozer/targets/android_new.py b/buildozer/targets/android_new.py index d41d9e419..571813a9c 100644 --- a/buildozer/targets/android_new.py +++ b/buildozer/targets/android_new.py @@ -25,20 +25,14 @@ def _p4a(self, cmd, **kwargs): return self.buildozer.cmd(self._p4a_cmd + cmd, **kwargs) def get_available_packages(self): - available_modules = self._p4a( - "recipes --compact", - get_stdout=True)[0] - return available_modules.splitlines()[0].split() + return True def compile_platform(self): app_requirements = self.buildozer.config.getlist( 'app', 'requirements', '') - available_modules = self.get_available_packages() onlyname = lambda x: x.split('==')[0] - android_requirements = [x for x in app_requirements - if onlyname(x) in available_modules] dist_name = self.buildozer.config.get('app', 'package.name') - requirements = ','.join(android_requirements) + requirements = ','.join(app_requirements) options = [] source_dirs = {