E.B.customize

Customization code for virtualenv bootstrap scripts.

This code is only useful when included in a virtualenv bootstrap script. It uses virtualenv‘s supported hooks to enhance and modify the script’s behaviour.

Members

everyapp.bootstrap.customize.extend_parser(parser)[source]

virtualenv hook to extend the command-line parser.

This is also where the configuration file is read and overridden default option values are set.

Parameters:parser (optparse.OptionParser) – The command-line parser to use.

See also

bootstrap.py for the full list of command-line options, including the new and modified ones.

See also

bootstrap.cfg for details on the configuration file and overriding default option values.

everyapp.bootstrap.customize.adjust_options(options, args)[source]

virtualenv hook to adjust the parsed command-line options and args.

This function just sets the home directory to the current directory and maps some of the new command-line options to their original counterparts.

Parameters:
  • options (optparse.Values) – The parsed command-line options.
  • args (tuple) – Any positional arguments from the command-line.

See also

bootstrap.py for the full list of command-line options, including the new and modified ones.

everyapp.bootstrap.customize.after_install(options, home_dir)[source]

virtualenv hook for post-bootstrap customization.

This function is responsible for all the steps that take place after the virtual environment has been created. Specifically, this function installs all the distributions and runs all the commands specified in the configuration file.

Parameters:
  • options (optparse.Values) – The parsed command-line options.
  • home_dir (str) – The home directory of the virtual environment. (This is always set to '.').

See also

bootstrap.cfg for details on how to specify what distributions to install and what commands to run.