mirror of
https://github.com/python/cpython.git
synced 2025-09-17 22:20:23 +00:00
Update distutils so that it triggers no warnings when run under -3.
This commit is contained in:
parent
94f243aa41
commit
047e4a915d
4 changed files with 10 additions and 9 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue