[Python-checkins] python/dist/src/Lib/distutils/command bdist_pkgtool.py,1.7,1.8

jackjansen@users.sourceforge.net jackjansen@users.sourceforge.net
Wed, 26 Jun 2002 08:00:31 -0700


Update of /cvsroot/python/python/dist/src/Lib/distutils/command
In directory usw-pr-cvs1:/tmp/cvs-serv1292

Modified Files:
	bdist_pkgtool.py 
Log Message:
This module broke on the Mac (where it can't work, but distutils seems to import it anyway) because it imported pwd and grp. Moved the import to inside the routine where they're used.

Index: bdist_pkgtool.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/distutils/command/bdist_pkgtool.py,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** bdist_pkgtool.py	4 Jun 2002 21:00:33 -0000	1.7
--- bdist_pkgtool.py	26 Jun 2002 15:00:29 -0000	1.8
***************
*** 7,11 ****
  distributions)."""
  
! import os, string, sys, pwd, grp
  from types import *
  from distutils.util import get_platform
--- 7,11 ----
  distributions)."""
  
! import os, string, sys
  from types import *
  from distutils.util import get_platform
***************
*** 282,285 ****
--- 282,286 ----
  
      def _make_prototype(self):
+         import pwd, grp
          proto_file = ["i pkginfo"]
          if self.request: