[Python-checkins] distutils2: added a create action

tarek.ziade python-checkins at python.org
Sun Mar 13 20:56:01 CET 2011


http://hg.python.org/distutils2/rev/87afa2e775c5
changeset:   1114:87afa2e775c5
user:        Tarek Ziade <tarek at ziade.org>
date:        Sat Mar 12 09:54:09 2011 -0500
summary:
  added a create action

files:
  distutils2/run.py

diff --git a/distutils2/run.py b/distutils2/run.py
--- a/distutils2/run.py
+++ b/distutils2/run.py
@@ -180,13 +180,20 @@
     remove(options.remove)
     return 0
 
+def _create(distpatcher, args, **kw):
+    from distutils2.mkcfg import main
+    main()
+    return 0
+
 
 actions = [('run', 'Run one or several commands', _run),
            ('metadata', 'Display the metadata of a project', _metadata),
            ('install', 'Install a project', _install),
            ('remove', 'Remove a project', _remove),
            ('search', 'Search for a project', _search),
-           ('graph', 'Display a graph', _graph),]
+           ('graph', 'Display a graph', _graph),
+           ('create', 'Create a Project', _create),]
+
 
 
 

-- 
Repository URL: http://hg.python.org/distutils2


More information about the Python-checkins mailing list