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.
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.
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: |
---|
See also
bootstrap.py for the full list of command-line options, including the new and modified ones.
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: |
---|
See also
bootstrap.cfg for details on how to specify what distributions to install and what commands to run.