Skip to content

Commit 69d9705

Browse files
authored
🔊 Improve rebuild recipes logging & bump pyzbar version (kivy#2986)
Add the build command to the logs so it's more clear how to reproduce a potential rebuild issue. Bump pyzbar recipe to trigger a demo rebuild.
1 parent 8eacdc0 commit 69d9705

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

ci/rebuild_updated_recipes.py

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,18 @@ def build(target_python, requirements, archs):
5959
requirements.add(target_python.name)
6060
requirements = ','.join(requirements)
6161
logger.info('requirements: {}'.format(requirements))
62+
build_command = [
63+
'setup.py', 'apk',
64+
'--sdk-dir', android_sdk_home,
65+
'--ndk-dir', android_ndk_home,
66+
'--requirements', requirements
67+
] + [f"--arch={arch}" for arch in archs]
68+
build_command_str = " ".join(build_command)
69+
logger.info(f"Build command: {build_command_str}")
6270

6371
with current_directory('testapps/on_device_unit_tests/'):
6472
# iterates to stream the output
65-
for line in sh.python(
66-
'setup.py', 'apk', '--sdk-dir', android_sdk_home,
67-
'--ndk-dir', android_ndk_home, '--requirements',
68-
requirements, *[f"--arch={arch}" for arch in archs],
69-
_err_to_out=True, _iter=True):
73+
for line in sh.python(*build_command, _err_to_out=True, _iter=True):
7074
print(line)
7175

7276

pythonforandroid/recipes/pyzbar/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
class PyZBarRecipe(PythonRecipe):
66

7-
version = '0.1.7'
7+
version = '0.1.9'
88

99
url = 'https://github.com/NaturalHistoryMuseum/pyzbar/archive/v{version}.tar.gz' # noqa
1010

0 commit comments

Comments
 (0)