[Python-checkins] CVS: distutils/distutils/command bdist.py,1.5,1.6 install_lib.py,1.19,1.20

Greg Ward python-dev@python.org
Sun, 7 May 2000 11:32:18 -0400 (EDT)


Update of /projects/cvsroot/distutils/distutils/command
In directory newcnri:/tmp/cvs-serv27742

Modified Files:
	bdist.py install_lib.py 
Log Message:
Don't use 'set_option()' or 'get_option()' method -- direct attribute access,
or getattr/setattr, is all that's needed.

Index: bdist.py
===================================================================
RCS file: /projects/cvsroot/distutils/distutils/command/bdist.py,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -r1.5 -r1.6
*** bdist.py	2000/04/25 01:38:19	1.5
--- bdist.py	2000/05/07 15:32:12	1.6
***************
*** 6,10 ****
  # created 2000/03/29, Greg Ward
  
! __revision__ = "$Id: bdist.py,v 1.5 2000/04/25 01:38:19 gward Exp $"
  
  import os, string
--- 6,10 ----
  # created 2000/03/29, Greg Ward
  
! __revision__ = "$Id: bdist.py,v 1.6 2000/05/07 15:32:12 gward Exp $"
  
  import os, string
***************
*** 65,69 ****
  
          sub_cmd = self.find_peer (cmd_name)
!         sub_cmd.set_option ('format', self.format)
          self.run_peer (cmd_name)
  
--- 65,69 ----
  
          sub_cmd = self.find_peer (cmd_name)
!         sub_cmd.format = self.format
          self.run_peer (cmd_name)
  

Index: install_lib.py
===================================================================
RCS file: /projects/cvsroot/distutils/distutils/command/install_lib.py,v
retrieving revision 1.19
retrieving revision 1.20
diff -C2 -r1.19 -r1.20
*** install_lib.py	2000/03/31 02:53:07	1.19
--- install_lib.py	2000/05/07 15:32:13	1.20
***************
*** 1,5 ****
  # created 1999/03/13, Greg Ward
  
! __revision__ = "$Id: install_lib.py,v 1.19 2000/03/31 02:53:07 gward Exp $"
  
  import sys, os, string
--- 1,5 ----
  # created 1999/03/13, Greg Ward
  
! __revision__ = "$Id: install_lib.py,v 1.20 2000/05/07 15:32:13 gward Exp $"
  
  import sys, os, string
***************
*** 80,84 ****
          build_cmd = self.find_peer (build_cmd)
          build_files = build_cmd.get_outputs()
!         build_dir = build_cmd.get_option (cmd_option)
  
          prefix_len = len (build_dir) + len (os.sep)
--- 80,84 ----
          build_cmd = self.find_peer (build_cmd)
          build_files = build_cmd.get_outputs()
!         build_dir = getattr (build_cmd, cmd_option)
  
          prefix_len = len (build_dir) + len (os.sep)