Skip to content

Commit c4424cf

Browse files
committed
Make bootstrap dynamic for rebuild_updated_recipes
1 parent ddb46f6 commit c4424cf

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

ci/rebuild_updated_recipes.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def modified_recipes(branch='origin/master'):
4646
return recipes
4747

4848

49-
def build(target_python, requirements):
49+
def build(target_python, target_bootstrap, requirements):
5050
"""
5151
Builds an APK given a target Python and a set of requirements.
5252
"""
@@ -63,9 +63,12 @@ def build(target_python, requirements):
6363
with current_directory('testapps/'):
6464
try:
6565
for line in sh.python(
66-
testapp, 'apk', '--sdk-dir', android_sdk_home,
67-
'--ndk-dir', android_ndk_home, '--bootstrap', 'sdl2', '--requirements',
68-
requirements, _err_to_out=True, _iter=True):
66+
testapp, 'apk',
67+
'--sdk-dir', android_sdk_home,
68+
'--ndk-dir', android_ndk_home,
69+
'--bootstrap', target_bootstrap,
70+
'--requirements', requirements,
71+
_err_to_out=True, _iter=True):
6972
print(line)
7073
except sh.ErrorReturnCode as e:
7174
raise
@@ -89,7 +92,7 @@ def main():
8992
broken_recipes = BROKEN_RECIPES[target_python]
9093
recipes -= broken_recipes
9194
print('recipes to build (no broken):', recipes)
92-
build(target_python, recipes)
95+
build(target_python, bs.name, recipes)
9396

9497

9598
if __name__ == '__main__':

0 commit comments

Comments
 (0)