~ubuntu-branches/ubuntu/precise/python3.2/precise-proposed

« back to all changes in this revision

Viewing changes to Lib/distutils/command/build_py.py

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2012-03-09 18:40:39 UTC
  • mfrom: (30.1.2 sid)
  • Revision ID: package-import@ubuntu.com-20120309184039-j3yk2emxr1plyo21
Tags: 3.2.3~rc1-1
* Python 3.2.3 release candidate 1.
* Update to 20120309 from the 3.2 branch.
* Fix libpython.a symlink. Closes: #660146.
* Build-depend on xauth.
* Run the gdb tests for the debug build only.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 
3
3
Implements the Distutils 'build_py' command."""
4
4
 
5
 
import sys, os
 
5
import os
 
6
import imp
6
7
import sys
7
8
from glob import glob
8
9
 
311
312
            outputs.append(filename)
312
313
            if include_bytecode:
313
314
                if self.compile:
314
 
                    outputs.append(filename + "c")
 
315
                    outputs.append(imp.cache_from_source(filename,
 
316
                                                         debug_override=True))
315
317
                if self.optimize > 0:
316
 
                    outputs.append(filename + "o")
 
318
                    outputs.append(imp.cache_from_source(filename,
 
319
                                                         debug_override=False))
317
320
 
318
321
        outputs += [
319
322
            os.path.join(build_dir, filename)