Some far-reaching naming changes:
* Command method 'find_peer()' -> 'get_finalized_command()'
* Command method 'run_peer()' -> 'run_command()'
Also deleted the 'get_command_option()' method from Command, and
fixed the one place where it was used (in "bdist_dumb").
diff --git a/Lib/distutils/command/sdist.py b/Lib/distutils/command/sdist.py
index 0a57ba3..6626b9e 100644
--- a/Lib/distutils/command/sdist.py
+++ b/Lib/distutils/command/sdist.py
@@ -223,15 +223,15 @@
self.files.extend (files)
if self.distribution.has_pure_modules():
- build_py = self.find_peer ('build_py')
+ build_py = self.get_finalized_command ('build_py')
self.files.extend (build_py.get_source_files ())
if self.distribution.has_ext_modules():
- build_ext = self.find_peer ('build_ext')
+ build_ext = self.get_finalized_command ('build_ext')
self.files.extend (build_ext.get_source_files ())
if self.distribution.has_c_libraries():
- build_clib = self.find_peer ('build_clib')
+ build_clib = self.get_finalized_command ('build_clib')
self.files.extend (build_clib.get_source_files ())
@@ -441,7 +441,7 @@
# while loop over lines of template file
# Prune away the build and source distribution directories
- build = self.find_peer ('build')
+ build = self.get_finalized_command ('build')
exclude_pattern (self.files, None, prefix=build.build_base)
base_dir = self.distribution.get_fullname()