diff options
| author | Éric Araujo <merwok@netwok.org> | 2011-10-19 06:18:05 (GMT) |
|---|---|---|
| committer | Éric Araujo <merwok@netwok.org> | 2011-10-19 06:18:05 (GMT) |
| commit | 4b5a5f7bd5c966648340b8bdbca54e836658cac7 (patch) | |
| tree | 7ab407c8dbd8540c2db40d8d3a842a73d6eea9a9 /Lib/packaging/command/install_lib.py | |
| parent | 8ccd18fff334b9b9a32e9662684f59cac332c524 (diff) | |
| download | cpython-4b5a5f7bd5c966648340b8bdbca54e836658cac7.zip cpython-4b5a5f7bd5c966648340b8bdbca54e836658cac7.tar.gz cpython-4b5a5f7bd5c966648340b8bdbca54e836658cac7.tar.bz2 | |
More fixes for PEP 3147 compliance in packaging (#11254)
Diffstat (limited to 'Lib/packaging/command/install_lib.py')
| -rw-r--r-- | Lib/packaging/command/install_lib.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Lib/packaging/command/install_lib.py b/Lib/packaging/command/install_lib.py index 5e81b41..558966d 100644 --- a/Lib/packaging/command/install_lib.py +++ b/Lib/packaging/command/install_lib.py @@ -1,6 +1,7 @@ """Install all modules (extensions and pure Python).""" import os +import imp import sys import logging @@ -172,9 +173,10 @@ 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)) 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 |
