def build_dist_from_args(ctx, dist, args):
 bs = Bootstrap.get_bootstrap(args.bootstrap, ctx)
 (build_order, python_modules, bs) = get_recipe_order_and_bootstrap(ctx, dist.recipes, bs)
 ctx.recipe_build_order = build_order
 ctx.python_modules = python_modules
 if (python_modules and hasattr(sys, 'real_prefix')):
  error('virtualenv is needed to install pure-Python modules, but')
  error('virtualenv does not support nesting, and you are running')
  error('python-for-android in one. Please run p4a outside of a')
  error('virtualenv instead.')
  exit(1)
 info('The selected bootstrap is {}'.format(bs.name))
 info_main('# Creating dist with {} bootstrap'.format(bs.name))
 bs.distribution = dist
 info_notify('Dist will have name {} and recipes ({})'.format(dist.name, ', '.join(dist.recipes)))
 ctx.dist_name = bs.distribution.name
 ctx.prepare_bootstrap(bs)
 ctx.prepare_dist(ctx.dist_name)
 build_recipes(build_order, python_modules, ctx)
 ctx.bootstrap.run_distribute()
 info_main('# Your distribution was created successfully, exiting.')
 info('Dist can be found at (for now) {}'.format(join(ctx.dist_dir, ctx.dist_name)))

def build_dist_from_args ( ctx , dist , args ) : bs = Bootstrap . get_bootstrap ( args . bootstrap , ctx ) ( build_order , python_modules , bs ) = get_recipe_order_and_bootstrap ( ctx , dist . recipes , bs ) ctx . recipe_build_order = build_order ctx . python_modules = python_modules if ( python_modules and hasattr ( sys , 'real_prefix' ) ) : error ( 'virtualenv is needed to install pure-Python modules, but' ) error ( 'virtualenv does not support nesting, and you are running' ) error ( 'python-for-android in one. Please run p4a outside of a' ) error ( 'virtualenv instead.' ) exit ( 1 ) info ( 'The selected bootstrap is {}' . format ( bs . name ) ) info_main ( '# Creating dist with {} bootstrap' . format ( bs . name ) ) bs . distribution = dist info_notify ( 'Dist will have name {} and recipes ({})' . format ( dist . name , ', ' . join ( dist . recipes ) ) ) ctx . dist_name = bs . distribution . name ctx . prepare_bootstrap ( bs ) ctx . prepare_dist ( ctx . dist_name ) build_recipes ( build_order , python_modules , ctx ) ctx . bootstrap . run_distribute ( ) info_main ( '# Your distribution was created successfully, exiting.' ) info ( 'Dist can be found at (for now) {}' . format ( join ( ctx . dist_dir , ctx . dist_name ) ) )
parses out any bootstrap related arguments .