Commit 1f4bdba5 authored by Gregory P. Smith's avatar Gregory P. Smith

Made the '--record' option take an argument, which is the name of the

file to write the list of installed files to.
parent b9143e83
...@@ -89,8 +89,8 @@ class install (Command): ...@@ -89,8 +89,8 @@ class install (Command):
#('install-html=', None, "directory for HTML documentation"), #('install-html=', None, "directory for HTML documentation"),
#('install-info=', None, "directory for GNU info files"), #('install-info=', None, "directory for GNU info files"),
('record', None, ('record=', None,
"make a record of installation"), "filename in which to record list of installed files"),
] ]
# 'sub_commands': a list of commands this command might have to run # 'sub_commands': a list of commands this command might have to run
...@@ -445,8 +445,9 @@ class install (Command): ...@@ -445,8 +445,9 @@ class install (Command):
for counter in xrange (len (outputs)): for counter in xrange (len (outputs)):
outputs[counter] = outputs[counter][root_len:] outputs[counter] = outputs[counter][root_len:]
self.execute(write_file, self.execute(write_file,
("INSTALLED_FILES", outputs), (self.record, outputs),
"writing list of installed files") "writing list of installed files to '%s'" %
self.record)
normalized_path = map (os.path.normpath, sys.path) normalized_path = map (os.path.normpath, sys.path)
if (not (self.path_file and self.install_path_file) and if (not (self.path_file and self.install_path_file) and
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment