|
|
|
@ -637,25 +637,26 @@ def make_library(library): |
|
|
|
|
return (library, error, deps, external_deps) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
update_libraries = [] |
|
|
|
|
for library in sorted(consumes.keys()): |
|
|
|
|
if library in no_update: |
|
|
|
|
continue |
|
|
|
|
if args.targets and library not in args.targets: |
|
|
|
|
continue |
|
|
|
|
update_libraries.append(library) |
|
|
|
|
with multiprocessing.Pool(processes=multiprocessing.cpu_count()) as p: |
|
|
|
|
updated_libraries = p.map(make_library, update_libraries, 1) |
|
|
|
|
|
|
|
|
|
error = False |
|
|
|
|
for library, lib_error, deps, external_deps in updated_libraries: |
|
|
|
|
if lib_error: |
|
|
|
|
error = True |
|
|
|
|
continue |
|
|
|
|
buildozer_set_list('external_deps', external_deps, library, via='deps') |
|
|
|
|
buildozer_set_list('deps', deps, library) |
|
|
|
|
if __name__ == "__main__": |
|
|
|
|
update_libraries = [] |
|
|
|
|
for library in sorted(consumes.keys()): |
|
|
|
|
if library in no_update: |
|
|
|
|
continue |
|
|
|
|
if args.targets and library not in args.targets: |
|
|
|
|
continue |
|
|
|
|
update_libraries.append(library) |
|
|
|
|
with multiprocessing.Pool(processes=multiprocessing.cpu_count()) as p: |
|
|
|
|
updated_libraries = p.map(make_library, update_libraries, 1) |
|
|
|
|
|
|
|
|
|
error = False |
|
|
|
|
for library, lib_error, deps, external_deps in updated_libraries: |
|
|
|
|
if lib_error: |
|
|
|
|
error = True |
|
|
|
|
continue |
|
|
|
|
buildozer_set_list('external_deps', external_deps, library, via='deps') |
|
|
|
|
buildozer_set_list('deps', deps, library) |
|
|
|
|
|
|
|
|
|
run_buildozer.run_buildozer(buildozer_commands) |
|
|
|
|
run_buildozer.run_buildozer(buildozer_commands) |
|
|
|
|
|
|
|
|
|
if error: |
|
|
|
|
sys.exit(1) |
|
|
|
|
if error: |
|
|
|
|
sys.exit(1) |
|
|
|
|