Package _setup :: Package make :: Module _make
[hide private]
[frames] | no frames]

Module _make

source code

Simple make base.


Author: André Malo

Classes [hide private]
  Failure
Failure exception
  Target
Target base class
  _Runner
Runner
Functions [hide private]
 
fail(reason)
Fail for a reason
source code
 
warn(message, name=None)
Warn
source code
 
fatal(reason)
Fatal error, immediate stop
source code
 
main(argv=None, name=None, *args)
Main start point.
source code
Variables [hide private]
  __package__ = '_setup.make'
Function Details [hide private]

main(argv=None, name=None, *args)

source code 
Main start point. This function parses the command line and executes the targets given through argv. If there are no targets given, a help output is generated.
Parameters:
  • argv (sequence) - Command line arguments. If omitted or None, they are picked from sys.argv.
  • args (tuple) - The list of modules with targets. If omitted, __main__ is imported and treated as target module. Additionally the mechanism always adds the _setup.make module (this one) to the list in order to grab some default targets.
  • name (str) - Name of the executing module. If omitted or None, '__main__' is assumed. If the final name is not '__main__', the function returns immediately.