summaryrefslogtreecommitdiff
path: root/distutils2/command/command_template
diff options
context:
space:
mode:
author?ric Araujo <merwok@netwok.org>2010-10-05 01:01:54 +0200
committer?ric Araujo <merwok@netwok.org>2010-10-05 01:01:54 +0200
commitf28cf3cfe3cd03111d2a636a75ce7985770b611d (patch)
tree6da438f1e3775588f17844d3f09efe584558af56 /distutils2/command/command_template
parenta4394ad911690c61eb03f28cb8025c457fd808c5 (diff)
downloaddisutils2-f28cf3cfe3cd03111d2a636a75ce7985770b611d.tar.gz
Remove last two svn markers. Also clean up command_template.
Diffstat (limited to 'distutils2/command/command_template')
-rw-r--r--distutils2/command/command_template43
1 files changed, 17 insertions, 26 deletions
diff --git a/distutils2/command/command_template b/distutils2/command/command_template
index 50bbab7..abd1fa3 100644
--- a/distutils2/command/command_template
+++ b/distutils2/command/command_template
@@ -1,45 +1,36 @@
-"""distutils.command.x
+"""Implementation of the 'x' command."""
-Implements the Distutils 'x' command.
-"""
+import logging
+from distutils2.command.cmd import Command
-# created 2000/mm/dd, John Doe
-__revision__ = "$Id$"
-
-from distutils.core import Command
-
-
-class x (Command):
+class x(Command):
# Brief (40-50 characters) description of the command
description = ""
# List of option tuples: long name, short name (None if no short
# name), and help string.
- user_options = [('', '',
- ""),
- ]
+ user_options = [
+ ('', '', # long option, short option (one letter) or None
+ ""), # help text
+ ]
- def initialize_options (self):
+ def initialize_options(self):
self. = None
self. = None
self. = None
- # initialize_options()
-
-
- def finalize_options (self):
+ def finalize_options(self):
if self.x is None:
- self.x =
-
- # finalize_options()
-
-
- def run (self):
+ self.x = ...
+ def run(self):
+ ...
+ logging.info(...)
- # run()
+ if not self.dry_run:
+ ...
-# class x
+ self.execute(..., dry_run=self.dry_run)