summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGregory P. Smith <greg@mad-scientist.com>2000-05-13 02:13:53 (GMT)
committerGregory P. Smith <greg@mad-scientist.com>2000-05-13 02:13:53 (GMT)
commit7e855ef6ad9fba6c67d03bf11cb0ad8d36809e3e (patch)
tree473ef3ba89f28d4332d742a00189067d60055755 /Lib
parent11fb783fa4b5760c0b5d528ba3ba6c7e25d8ae8b (diff)
downloadcpython-7e855ef6ad9fba6c67d03bf11cb0ad8d36809e3e.zip
cpython-7e855ef6ad9fba6c67d03bf11cb0ad8d36809e3e.tar.gz
cpython-7e855ef6ad9fba6c67d03bf11cb0ad8d36809e3e.tar.bz2
Ditch the explicit search for *.py[co] files -- they're now included in
the list returned by 'get_outputs()', thanks to changes in the "install_lib" command.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/distutils/command/install.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/Lib/distutils/command/install.py b/Lib/distutils/command/install.py
index 163b018..2429f1b 100644
--- a/Lib/distutils/command/install.py
+++ b/Lib/distutils/command/install.py
@@ -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:]