[Python-checkins] CVS: distutils/distutils cmd.py,1.14,1.15
Greg Ward
python-dev@python.org
Wed, 31 May 2000 18:08:54 -0700
Update of /cvsroot/python/distutils/distutils
In directory slayer.i.sourceforge.net:/tmp/cvs-serv21312
Modified Files:
cmd.py
Log Message:
Added 'reinitialize_command()' method -- delegated to Distribution instance.
Ensure 'make_archive()' method returns archive filename.
Index: cmd.py
===================================================================
RCS file: /cvsroot/python/distutils/distutils/cmd.py,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -r1.14 -r1.15
*** cmd.py 2000/05/28 23:54:00 1.14
--- cmd.py 2000/06/01 01:08:52 1.15
***************
*** 7,11 ****
# (extricated from core.py; actually dates back to the beginning)
! __revision__ = "$Id: cmd.py,v 1.14 2000/05/28 23:54:00 gward Exp $"
import sys, os, string
--- 7,11 ----
# (extricated from core.py; actually dates back to the beginning)
! __revision__ = "$Id: cmd.py,v 1.15 2000/06/01 01:08:52 gward Exp $"
import sys, os, string
***************
*** 216,219 ****
--- 216,223 ----
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):
***************
*** 307,312 ****
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)
--- 311,316 ----
def make_archive (self, base_name, format,
root_dir=None, base_dir=None):
! return util.make_archive (base_name, format, root_dir, base_dir,
! self.verbose, self.dry_run)