]> granicus.if.org Git - python/commitdiff
Ditch the explicit search for *.py[co] files -- they're now included in
authorGregory P. Smith <greg@mad-scientist.com>
Sat, 13 May 2000 02:13:53 +0000 (02:13 +0000)
committerGregory P. Smith <greg@mad-scientist.com>
Sat, 13 May 2000 02:13:53 +0000 (02:13 +0000)
the list returned by 'get_outputs()', thanks to changes in the
"install_lib" command.

Lib/distutils/command/install.py

index 163b018749e3bbe78c936d6e0bfb8d4e25952e51..2429f1b1f995ab4c2d17913233627ab9a1a6295b 100644 (file)
@@ -440,12 +440,7 @@ class install (Command):
         # write list of installed files, if requested.
         if self.record:
             outputs = self.get_outputs()
-            for counter in xrange (len (outputs)): # include ".pyc" and ".pyo"
-                if outputs[counter][-3:] == ".py":
-                    byte_code = glob(outputs[counter] + '[co]')
-                    outputs.extend(byte_code)
-            outputs.sort() # just makes it look nicer
-            if self.root: # strip any package prefix
+            if self.root:               # strip any package prefix
                 root_len = len(self.root)
                 for counter in xrange (len (outputs)):
                     outputs[counter] = outputs[counter][root_len:]