diff options
author | Éric Araujo <merwok@netwok.org> | 2011-11-03 03:45:33 +0100 |
---|---|---|
committer | Éric Araujo <merwok@netwok.org> | 2011-11-03 03:45:33 +0100 |
commit | 1848236a78d97a6ae782a9bcaf52622261b2638c (patch) | |
tree | b1fe308e75698839c27c151d1a41bd7fbd388bfb /Lib/distutils/command/install_lib.py | |
parent | 8187210d58766c4e3981e3f677d690ebc9cefaa6 (diff) | |
download | cpython-1848236a78d97a6ae782a9bcaf52622261b2638c.tar.gz |
More fixes for PEP 3147 compliance in distutils (#11254)
Diffstat (limited to 'Lib/distutils/command/install_lib.py')
-rw-r--r-- | Lib/distutils/command/install_lib.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Lib/distutils/command/install_lib.py b/Lib/distutils/command/install_lib.py index 3d01d07115..15c08f1249 100644 --- a/Lib/distutils/command/install_lib.py +++ b/Lib/distutils/command/install_lib.py @@ -4,6 +4,7 @@ Implements the Distutils 'install_lib' command (install all Python modules).""" import os +import imp import sys from distutils.core import Command @@ -164,9 +165,11 @@ class install_lib(Command): if ext != PYTHON_SOURCE_EXTENSION: continue if self.compile: - bytecode_files.append(py_file + "c") + bytecode_files.append(imp.cache_from_source( + py_file, debug_override=True)) if self.optimize > 0: - bytecode_files.append(py_file + "o") + bytecode_files.append(imp.cache_from_source( + py_file, debug_override=False)) return bytecode_files |