[Checkins] SVN: zc.buildout/trunk/ Renamed the runsetup command to setup.

Jim Fulton jim at zope.com
Mon Oct 2 14:13:36 EDT 2006


Log message for revision 70499:
  Renamed the runsetup command to setup.
  

Changed:
  U   zc.buildout/trunk/CHANGES.txt
  U   zc.buildout/trunk/src/zc/buildout/buildout.py
  U   zc.buildout/trunk/src/zc/buildout/runsetup.txt

-=-
Modified: zc.buildout/trunk/CHANGES.txt
===================================================================
--- zc.buildout/trunk/CHANGES.txt	2006-10-02 18:01:58 UTC (rev 70498)
+++ zc.buildout/trunk/CHANGES.txt	2006-10-02 18:13:35 UTC (rev 70499)
@@ -22,6 +22,14 @@
 Change History
 **************
 
+Next Release
+============
+
+Feature Changes
+---------------
+
+Renamed the runsetup command to setup. (The old name still works.)
+
 1.0.0b9 (2006-10-02)
 ====================
 

Modified: zc.buildout/trunk/src/zc/buildout/buildout.py
===================================================================
--- zc.buildout/trunk/src/zc/buildout/buildout.py	2006-10-02 18:01:58 UTC (rev 70498)
+++ zc.buildout/trunk/src/zc/buildout/buildout.py	2006-10-02 18:13:35 UTC (rev 70499)
@@ -619,7 +619,7 @@
             for ep in pkg_resources.iter_entry_points('zc.buildout.extension'):
                 ep.load()(self)
 
-    def runsetup(self, args):
+    def setup(self, args):
         setup = args.pop(0)
         if os.path.isdir(setup):
             setup = os.path.join(setup, 'setup.py')
@@ -646,6 +646,8 @@
         finally:
             os.close(fd)
             os.remove(tsetup)
+
+    runsetup = setup # backward compat
         
 runsetup_template = """
 import sys
@@ -879,7 +881,7 @@
 
     if args:
         command = args.pop(0)
-        if command not in ('install', 'bootstrap', 'runsetup'):
+        if command not in ('install', 'bootstrap', 'runsetup', 'setup'):
             _error('invalid command:', command)
     else:
         command = 'install'

Modified: zc.buildout/trunk/src/zc/buildout/runsetup.txt
===================================================================
--- zc.buildout/trunk/src/zc/buildout/runsetup.txt	2006-10-02 18:01:58 UTC (rev 70498)
+++ zc.buildout/trunk/src/zc/buildout/runsetup.txt	2006-10-02 18:13:35 UTC (rev 70499)
@@ -9,7 +9,7 @@
 in your Python path, which may be an issue if you haven't installed
 setuptools into your Python installation.
 
-The buildout runsetup command is helpful in a situation like this.  It
+The buildout setup command is helpful in a situation like this.  It
 can be used to run a setup script and it does so with the setuptools
 egg in the Python path and with setuptools already imported.  The fact
 that setuptools is imported means that you can use setuptools-based
@@ -35,7 +35,7 @@
     >>> cd(sample_buildout)
     >>> import os
     >>> print system(os.path.join('bin', 'buildout')
-    ...              +' runsetup hello -q bdist_egg'),
+    ...              +' setup hello -q bdist_egg'),
     buildout: Running setup script hello/setup.py
     zip_safe flag not set; analyzing archive contents...
 



More information about the Checkins mailing list