Update distutils so that it triggers no warnings when run under -3.

This commit is contained in:
Brett Cannon 2008-08-17 04:16:04 +00:00
parent 94f243aa41
commit 047e4a915d
4 changed files with 10 additions and 9 deletions

View file

@ -169,7 +169,7 @@ class build_py (Command):
del path[-1]
else:
tail.insert(0, pdir)
return apply(os.path.join, tail)
return os.path.join(*tail)
else:
# Oops, got all the way through 'path' without finding a
# match in package_dir. If package_dir defines a directory
@ -337,7 +337,7 @@ class build_py (Command):
def get_module_outfile (self, build_dir, package, module):
outfile_path = [build_dir] + list(package) + [module + ".py"]
return apply(os.path.join, outfile_path)
return os.path.join(*outfile_path)
def get_outputs (self, include_bytecode=1):