]> granicus.if.org Git - python/commitdiff
Made the '--record' option take an argument, which is the name of the
authorGregory P. Smith <greg@mad-scientist.com>
Sat, 13 May 2000 02:16:45 +0000 (02:16 +0000)
committerGregory P. Smith <greg@mad-scientist.com>
Sat, 13 May 2000 02:16:45 +0000 (02:16 +0000)
file to write the list of installed files to.

Lib/distutils/command/install.py

index 2429f1b1f995ab4c2d17913233627ab9a1a6295b..a4986e5d5d080bc54e1a1653aa64dbeb2c2e5129 100644 (file)
@@ -89,8 +89,8 @@ class install (Command):
         #('install-html=', None, "directory for HTML documentation"),
         #('install-info=', None, "directory for GNU info files"),
 
-        ('record', None,
-         "make a record of installation"),
+        ('record=', None,
+         "filename in which to record list of installed files"),
         ]
 
     # 'sub_commands': a list of commands this command might have to run
@@ -445,8 +445,9 @@ class install (Command):
                 for counter in xrange (len (outputs)):
                     outputs[counter] = outputs[counter][root_len:]
             self.execute(write_file,
-                         ("INSTALLED_FILES", outputs),
-                         "writing list of installed files")
+                         (self.record, outputs),
+                         "writing list of installed files to '%s'" %
+                         self.record)
 
         normalized_path = map (os.path.normpath, sys.path)
         if (not (self.path_file and self.install_path_file) and