summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/command/build_py.py
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2011-11-03 01:45:46 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2011-11-03 01:45:46 (GMT)
commitcb2f84a21802a9e1776860b375745706fc570060 (patch)
tree08f2cab6d2f0b25ed15392a011bd88916a24636e /Lib/distutils/command/build_py.py
parent2662133a05d789de67aeaaad24aa86f49da95844 (diff)
downloadcpython-cb2f84a21802a9e1776860b375745706fc570060.zip
cpython-cb2f84a21802a9e1776860b375745706fc570060.tar.gz
cpython-cb2f84a21802a9e1776860b375745706fc570060.tar.bz2
Issue #13307: fix bdist_rpm test failures
Diffstat (limited to 'Lib/distutils/command/build_py.py')
-rw-r--r--Lib/distutils/command/build_py.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/distutils/command/build_py.py b/Lib/distutils/command/build_py.py
index 3868c12..9e2473f 100644
--- a/Lib/distutils/command/build_py.py
+++ b/Lib/distutils/command/build_py.py
@@ -3,7 +3,7 @@
Implements the Distutils 'build_py' command."""
import sys, os
-import sys
+import imp
from glob import glob
from distutils.core import Command
@@ -311,9 +311,9 @@ class build_py (Command):
outputs.append(filename)
if include_bytecode:
if self.compile:
- outputs.append(filename + "c")
+ outputs.append(imp.cache_from_source(filename, True))
if self.optimize > 0:
- outputs.append(filename + "o")
+ outputs.append(imp.cache_from_source(filename, False))
outputs += [
os.path.join(build_dir, filename)