Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recipes not build after buildozer ios clean #1351

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions buildozer/targets/ios.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,23 +146,24 @@ def compile_platform(self):
ios_requirements = [x for x in app_requirements if onlyname(x) in
available_modules]

need_compile = 0
if last_requirements != ios_requirements:
need_compile = 1
needs_compilation = True
else:
needs_compilation = False

# len('requirements.source.') == 20, so use name[20:]
source_dirs = {'{}_DIR'.format(name[20:].upper()):
realpath(expanduser(value))
for name, value in self.buildozer.config.items('app')
if name.startswith('requirements.source.')}
if source_dirs:
need_compile = 1
needs_compilation = True
self.buildozer.environ.update(source_dirs)
self.buildozer.info('Using custom source dirs:\n {}'.format(
'\n '.join(['{} = {}'.format(k, v)
for k, v in source_dirs.items()])))

if not need_compile:
if not needs_compilation:
self.buildozer.info('Distribution already compiled, pass.')
return

Expand Down Expand Up @@ -301,6 +302,10 @@ def build_package(self):
self.buildozer.state['ios:latestipa'] = ipa
self.buildozer.state['ios:latestmode'] = self.build_mode

def cmd_clean(self, *args):
super().cmd_clean(*args)
self.buildozer.state['ios.requirements'] = ''

def cmd_deploy(self, *args):
super().cmd_deploy(*args)
self._run_ios_deploy(lldb=False)
Expand Down