Save information about the distribution in its dist_dir.
(self, dirn)
| 244 | return dists |
| 245 | |
| 246 | def save_info(self, dirn): |
| 247 | ''' |
| 248 | Save information about the distribution in its dist_dir. |
| 249 | ''' |
| 250 | with current_directory(dirn): |
| 251 | info('Saving distribution info') |
| 252 | with open('dist_info.json', 'w') as fileh: |
| 253 | json.dump({'dist_name': self.name, |
| 254 | 'bootstrap': self.ctx.bootstrap.name, |
| 255 | 'archs': [arch.arch for arch in self.ctx.archs], |
| 256 | 'ndk_api': self.ctx.ndk_api, |
| 257 | 'use_setup_py': self.ctx.use_setup_py, |
| 258 | 'recipes': self.ctx.recipe_build_order + self.ctx.python_modules, |
| 259 | 'hostpython': self.ctx.hostpython, |
| 260 | 'python_version': self.ctx.python_recipe.major_minor_version_string}, |
| 261 | fileh) |
| 262 | |
| 263 | |
| 264 | def pretty_log_dists(dists, log_func=info): |