summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Ward <gward@python.net>2000-06-01 01:08:52 (GMT)
committerGreg Ward <gward@python.net>2000-06-01 01:08:52 (GMT)
commit308acf0bfa5c844392c723f6d4275277df6b38da (patch)
treef96a400c8a59774c1641ce1270bef5b65d360803
parent879096137d95548dacc8ce88d11d8e23fe239f09 (diff)
downloadcpython-308acf0bfa5c844392c723f6d4275277df6b38da.zip
cpython-308acf0bfa5c844392c723f6d4275277df6b38da.tar.gz
cpython-308acf0bfa5c844392c723f6d4275277df6b38da.tar.bz2
Added 'reinitialize_command()' method -- delegated to Distribution instance.
Ensure 'make_archive()' method returns archive filename.
-rw-r--r--Lib/distutils/cmd.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/Lib/distutils/cmd.py b/Lib/distutils/cmd.py
index f803389..852acad 100644
--- a/Lib/distutils/cmd.py
+++ b/Lib/distutils/cmd.py
@@ -215,6 +215,10 @@ class Command:
cmd_obj.ensure_finalized ()
return cmd_obj
+ # XXX rename to 'get_reinitialized_command()'? (should do the
+ # same in dist.py, if so)
+ def reinitialize_command (self, command):
+ return self.distribution.reinitialize_command(command)
def run_command (self, command):
"""Run some other command: uses the 'run_command()' method of
@@ -306,8 +310,8 @@ class Command:
def make_archive (self, base_name, format,
root_dir=None, base_dir=None):
- util.make_archive (base_name, format, root_dir, base_dir,
- self.verbose, self.dry_run)
+ return util.make_archive (base_name, format, root_dir, base_dir,
+ self.verbose, self.dry_run)
def make_file (self, infiles, outfile, func, args,