[Checkins] SVN: Sandbox/philikon/zopeproject/trunk/zopeproject/script.py split the buildout running routine into its own function

Philipp von Weitershausen philikon at philikon.de
Sat Jul 14 12:31:52 EDT 2007


Log message for revision 77949:
  split the buildout running routine into its own function
  

Changed:
  U   Sandbox/philikon/zopeproject/trunk/zopeproject/script.py

-=-
Modified: Sandbox/philikon/zopeproject/trunk/zopeproject/script.py
===================================================================
--- Sandbox/philikon/zopeproject/trunk/zopeproject/script.py	2007-07-14 16:26:58 UTC (rev 77948)
+++ Sandbox/philikon/zopeproject/trunk/zopeproject/script.py	2007-07-14 16:31:51 UTC (rev 77949)
@@ -51,9 +51,20 @@
         return
 
     os.chdir(project)
+    run_buildout(options.verbose)
 
+def run_buildout(verbose=False):
+    """Run a buildout.
+
+    This will download zc.buildout if it's not available. Then it will
+    bootstrap the buildout scripts and finally launch the buildout
+    installation routine.
+
+    Note that this function expects the buildout directory to be the
+    current working directory.
+    """
     extra_args = []
-    if not options.verbose:
+    if not verbose:
         extra_args.append('-q')
 
     try:



More information about the Checkins mailing list