mirror of
https://github.com/python/cpython.git
synced 2024-11-25 02:44:06 +08:00
Expect a tuple (dest_name, copied) from 'copy_file()'.
This commit is contained in:
parent
ff50ad53a9
commit
e564278bfd
@ -52,7 +52,7 @@ class install_data (Command):
|
||||
self.warn("setup script did not provide a directory for "
|
||||
"'%s' -- installing right in '%s'" %
|
||||
(f, self.install_dir))
|
||||
out = self.copy_file(f, self.install_dir)
|
||||
(out, _) = self.copy_file(f, self.install_dir)
|
||||
self.outfiles.append(out)
|
||||
else:
|
||||
# it's a tuple with path to install to and a list of files
|
||||
@ -63,7 +63,7 @@ class install_data (Command):
|
||||
dir = change_root(self.root, dir)
|
||||
self.mkpath(dir)
|
||||
for data in f[1]:
|
||||
out = self.copy_file(data, dir)
|
||||
(out, _) = self.copy_file(data, dir)
|
||||
self.outfiles.append(out)
|
||||
|
||||
def get_inputs (self):
|
||||
|
@ -41,7 +41,7 @@ class install_headers (Command):
|
||||
|
||||
self.mkpath(self.install_dir)
|
||||
for header in headers:
|
||||
out = self.copy_file(header, self.install_dir)
|
||||
(out, _) = self.copy_file(header, self.install_dir)
|
||||
self.outfiles.append(out)
|
||||
|
||||
def get_inputs (self):
|
||||
|
Loading…
Reference in New Issue
Block a user