[Python-checkins] distutils2: Added default implementation/documentation for the external API
tarek.ziade
python-checkins at python.org
Sat Jul 3 16:19:06 CEST 2010
tarek.ziade pushed 8fb85c777536 to distutils2:
http://hg.python.org/distutils2/rev/8fb85c777536
changeset: 231:8fb85c777536
parent: 188:b7fd258b33e7
user: Jeremy Kloth <jeremy.kloth at gmail.com>
date: Thu Jun 03 15:42:12 2010 -0600
summary: Added default implementation/documentation for the external API
files: src/distutils2/cmd.py
diff --git a/src/distutils2/cmd.py b/src/distutils2/cmd.py
--- a/src/distutils2/cmd.py
+++ b/src/distutils2/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