diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2011-11-03 01:45:46 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2011-11-03 01:45:46 (GMT) |
commit | cb2f84a21802a9e1776860b375745706fc570060 (patch) | |
tree | 08f2cab6d2f0b25ed15392a011bd88916a24636e /Lib/distutils/command/install_lib.py | |
parent | 2662133a05d789de67aeaaad24aa86f49da95844 (diff) | |
download | cpython-cb2f84a21802a9e1776860b375745706fc570060.zip cpython-cb2f84a21802a9e1776860b375745706fc570060.tar.gz cpython-cb2f84a21802a9e1776860b375745706fc570060.tar.bz2 |
Issue #13307: fix bdist_rpm test failures
Diffstat (limited to 'Lib/distutils/command/install_lib.py')
-rw-r--r-- | Lib/distutils/command/install_lib.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/distutils/command/install_lib.py b/Lib/distutils/command/install_lib.py index 3d01d07..8a6bc7d 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,9 @@ 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, True)) if self.optimize > 0: - bytecode_files.append(py_file + "o") + bytecode_files.append(imp.cache_from_source(py_file, False)) return bytecode_files |