]> granicus.if.org Git - python/commitdiff
This module broke on the Mac (where it can't work, but distutils seems to import...
authorJack Jansen <jack.jansen@cwi.nl>
Wed, 26 Jun 2002 15:00:29 +0000 (15:00 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Wed, 26 Jun 2002 15:00:29 +0000 (15:00 +0000)
Lib/distutils/command/bdist_pkgtool.py

index 51b89d978e14e85a1604c362117e25a1a2796350..3b8ca2d2e7b8876c8b3b1646c87aa96dafb48631 100644 (file)
@@ -6,7 +6,7 @@ Author: Mark W. Alexander <slash@dotnet.net>
 Implements the Distutils 'bdist_pkgtool' command (create Solaris pkgtool
 distributions)."""
 
-import os, string, sys, pwd, grp
+import os, string, sys
 from types import *
 from distutils.util import get_platform
 from distutils.file_util import write_file
@@ -281,6 +281,7 @@ class bdist_pkgtool (bdist_packager.bdist_packager):
 
 
     def _make_prototype(self):
+        import pwd, grp
         proto_file = ["i pkginfo"]
         if self.request:
             proto_file.extend(['i request'])