~ubuntu-branches/ubuntu/lucid/python2.6/lucid

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2010-03-11 13:30:19 UTC
  • mto: (10.1.13 sid)
  • mto: This revision was merged to the branch mainline in revision 44.
  • Revision ID: james.westby@ubuntu.com-20100311133019-sblbooa3uqrkoe70
Tags: upstream-2.6.5~rc2
ImportĀ upstreamĀ versionĀ 2.6.5~rc2

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
 
5
5
# This module should be kept compatible with Python 2.1.
6
6
 
7
 
__revision__ = "$Id: build_py.py 65742 2008-08-17 04:16:04Z brett.cannon $"
 
7
__revision__ = "$Id: build_py.py 77376 2010-01-08 23:27:23Z tarek.ziade $"
8
8
 
9
9
import string, os
10
10
from types import *
 
11
import sys
11
12
from glob import glob
12
13
 
13
14
from distutils.core import Command
418
419
 
419
420
 
420
421
    def byte_compile (self, files):
 
422
        if sys.dont_write_bytecode:
 
423
            self.warn('byte-compiling is disabled, skipping.')
 
424
            return
 
425
 
421
426
        from distutils.util import byte_compile
422
427
        prefix = self.build_lib
423
428
        if prefix[-1] != os.sep: