Allow for install_reqs line starting with whitespace.

This commit is contained in:
David Brooks 2018-10-30 12:34:37 +13:00
parent e4182fea1c
commit 0e1c1263fd

View file

@ -521,7 +521,7 @@ class TargetAndroid(Target):
try:
with open(join(self.pa_dir, "setup.py")) as fd:
setup = fd.read()
deps = re.findall("^install_reqs = (\[[^\]]*\])", setup, re.DOTALL | re.MULTILINE)[0]
deps = re.findall("^\*install_reqs = (\[[^\]]*\])", setup, re.DOTALL | re.MULTILINE)[0]
deps = ast.literal_eval(deps)
except IOError:
self.buildozer.error('Failed to read python-for-android setup.py at {}'.format(