[Python-checkins] distutils2: Pull changeset with new docstrings from jkloth

tarek.ziade python-checkins at python.org
Sat Jul 3 16:19:06 CEST 2010


tarek.ziade pushed ba4aa1e016db to distutils2:

http://hg.python.org/distutils2/rev/ba4aa1e016db
changeset:   232:ba4aa1e016db
parent:      230:0b1b57c04665
parent:      231:8fb85c777536
user:        ?ric Araujo <merwok at netwok.org>
date:        Thu Jun 24 17:39:49 2010 +0200
summary:     Pull changeset with new docstrings from jkloth
files:       src/distutils2/command/cmd.py

diff --git a/src/distutils2/command/cmd.py b/src/distutils2/command/cmd.py
--- a/src/distutils2/command/cmd.py
+++ b/src/distutils2/command/cmd.py
@@ -189,6 +189,31 @@
         """
         log.log(level, msg)
 
+    # -- External interface --------------------------------------------
+    # (called by outsiders)
+
+    def get_source_files(self):
+        """Return the list of files that are used as inputs to this command,
+        i.e. the files used to generate the output files.  The result is used
+        by the `sdist` command in determining the set of default files.
+
+        Command classes should implement this method if they operate on files
+        from the source tree.
+        """
+        return []
+
+    def get_outputs(self):
+        """Return the list of files that would be produced if this command
+        were actually run.  Not affected by the "dry-run" flag or whether
+        any other commands have been run.
+
+        Command classes should implement this method if they produce any
+        output files that get consumed by another command.  e.g., `build_ext`
+        returns the list of built extension modules, but not any temporary
+        files used in the compilation process.
+        """
+        return []
+
     # -- Option validation methods -------------------------------------
     # (these are very handy in writing the 'finalize_options()' method)
     #

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


More information about the Python-checkins mailing list