summaryrefslogtreecommitdiffstats
path: root/Lib/distutils
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2002-06-26 15:00:29 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2002-06-26 15:00:29 (GMT)
commit96cad2ea473a8415f1732bdcd4f266ec84d80e5f (patch)
treee12ef68dfd522d7675301953d11cf2eb46e50d01 /Lib/distutils
parentdcdf48a5c72a4d6fbe96f01c704424b0202287dc (diff)
downloadcpython-96cad2ea473a8415f1732bdcd4f266ec84d80e5f.zip
cpython-96cad2ea473a8415f1732bdcd4f266ec84d80e5f.tar.gz
cpython-96cad2ea473a8415f1732bdcd4f266ec84d80e5f.tar.bz2
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.
Diffstat (limited to 'Lib/distutils')
-rw-r--r--Lib/distutils/command/bdist_pkgtool.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/distutils/command/bdist_pkgtool.py b/Lib/distutils/command/bdist_pkgtool.py
index 51b89d9..3b8ca2d 100644
--- a/Lib/distutils/command/bdist_pkgtool.py
+++ b/Lib/distutils/command/bdist_pkgtool.py
@@ -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'])