[Python-checkins] CVS: distutils/distutils dist.py,1.6,1.7

Greg Ward python-dev@python.org
Fri, 21 Apr 2000 22:52:49 -0400 (EDT)


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

Modified Files:
	dist.py 
Log Message:
Fix how we generate the meta-data query methods to include 'get_fullname()' 
and the other "composite meta-data" methods.

Index: dist.py
===================================================================
RCS file: /projects/cvsroot/distutils/distutils/dist.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -r1.6 -r1.7
*** dist.py	2000/04/21 04:22:49	1.6
--- dist.py	2000/04/22 02:52:44	1.7
***************
*** 7,11 ****
  # (extricated from core.py; actually dates back to the beginning)
  
! __revision__ = "$Id: dist.py,v 1.6 2000/04/21 04:22:49 gward Exp $"
  
  import sys, string, re
--- 7,11 ----
  # (extricated from core.py; actually dates back to the beginning)
  
! __revision__ = "$Id: dist.py,v 1.7 2000/04/22 02:52:44 gward Exp $"
  
  import sys, string, re
***************
*** 124,130 ****
          # object in a sneaky and underhanded (but efficient!) way.
          self.metadata = DistributionMetadata ()
!         for attr in dir(self.metadata):
!             meth_name = "get_" + attr
!             setattr(self, meth_name, getattr(self.metadata, meth_name))
  
          # 'cmdclass' maps command names to class objects, so we
--- 124,132 ----
          # object in a sneaky and underhanded (but efficient!) way.
          self.metadata = DistributionMetadata ()
!         method_basenames = dir(self.metadata) + \
!                            ['fullname', 'contact', 'contact_email']
!         for basename in method_basenames:
!             method_name = "get_" + basename
!             setattr(self, method_name, getattr(self.metadata, method_name))
  
          # 'cmdclass' maps command names to class objects, so we