diff options
author | Éric Araujo <merwok@netwok.org> | 2011-11-03 15:27:57 (GMT) |
---|---|---|
committer | Éric Araujo <merwok@netwok.org> | 2011-11-03 15:27:57 (GMT) |
commit | 9c2f42f253d37496d52178377ab5e88f2e231401 (patch) | |
tree | 87ed0037e4dd774c762495f6334cb1af75649c4e /Lib/distutils/command/build_py.py | |
parent | cb2f84a21802a9e1776860b375745706fc570060 (diff) | |
parent | a083823a85b102643a68bc50ca6c78c60e244cd2 (diff) | |
download | cpython-9c2f42f253d37496d52178377ab5e88f2e231401.zip cpython-9c2f42f253d37496d52178377ab5e88f2e231401.tar.gz cpython-9c2f42f253d37496d52178377ab5e88f2e231401.tar.bz2 |
Branch merge
Diffstat (limited to 'Lib/distutils/command/build_py.py')
-rw-r--r-- | Lib/distutils/command/build_py.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/Lib/distutils/command/build_py.py b/Lib/distutils/command/build_py.py index 9e2473f..1371b3d 100644 --- a/Lib/distutils/command/build_py.py +++ b/Lib/distutils/command/build_py.py @@ -2,8 +2,9 @@ Implements the Distutils 'build_py' command.""" -import sys, os +import os import imp +import sys from glob import glob from distutils.core import Command @@ -311,9 +312,11 @@ class build_py (Command): outputs.append(filename) if include_bytecode: if self.compile: - outputs.append(imp.cache_from_source(filename, True)) + outputs.append(imp.cache_from_source(filename, + debug_override=True)) if self.optimize > 0: - outputs.append(imp.cache_from_source(filename, False)) + outputs.append(imp.cache_from_source(filename, + debug_override=False)) outputs += [ os.path.join(build_dir, filename) |