[Python-checkins] distutils2: Remove last two svn markers. Also clean up command_template.
tarek.ziade
python-checkins at python.org
Sat Nov 6 22:56:15 CET 2010
tarek.ziade pushed 37d217544e31 to distutils2:
http://hg.python.org/distutils2/rev/37d217544e31
changeset: 796:37d217544e31
parent: 746:cd4de05c226b
user: ?ric Araujo <merwok at netwok.org>
date: Tue Oct 05 01:01:54 2010 +0200
summary: Remove last two svn markers. Also clean up command_template.
files: distutils2/__init__.py, distutils2/command/command_template, setup.py
diff --git a/distutils2/__init__.py b/distutils2/__init__.py
--- a/distutils2/__init__.py
+++ b/distutils2/__init__.py
@@ -16,7 +16,6 @@
"""
__all__ = ['__version__']
-__revision__ = "$Id: __init__.py 78020 2010-02-06 16:37:32Z benjamin.peterson $"
__version__ = "1.0a3"
diff --git a/distutils2/command/command_template b/distutils2/command/command_template
--- 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):
+ if self.x is None:
+ self.x = ...
+ def run(self):
+ ...
+ logging.info(...)
- def finalize_options (self):
- if self.x is None:
- self.x =
+ if not self.dry_run:
+ ...
- # finalize_options()
-
-
- def run (self):
-
-
- # run()
-
-# class x
+ self.execute(..., dry_run=self.dry_run)
diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -1,6 +1,5 @@
#!/usr/bin/env python
# -*- encoding: utf8 -*-
-__revision__ = "$Id$"
import sys
import os
import re
--
Repository URL: http://hg.python.org/distutils2
More information about the Python-checkins
mailing list