def __merge_native_files(self): so_files = [] for module, file_dict in self._changed_files['projects'].iteritems(): for key, files in file_dict.iteritems(): if key == 'so': for m in range(len(files)): self.debug('append {} to native queue'.format(files[m])) so_files.append(files[m]) if len(so_files) > 0: from zipfile import ZipFile with ZipFile(get_sync_native_file_path(self._config['build_cache_dir']), "w") as nativeZip: for m in range(len(so_files)): nativeZip.write(so_files[m])