Ignore:
Timestamp:
Mar 19, 2014, 11:31:01 PM (11 years ago)
Author:
dmik
Message:

python: Merge vendor 2.7.6 to trunk.

Location:
python/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • python/trunk

  • python/trunk/Lib/distutils/command/build.py

    r2 r391  
    33Implements the Distutils 'build' command."""
    44
    5 # This module should be kept compatible with Python 2.1.
    6 
    7 __revision__ = "$Id: build.py 62197 2008-04-07 01:53:39Z mark.hammond $"
     5__revision__ = "$Id$"
    86
    97import sys, os
     8
     9from distutils.util import get_platform
    1010from distutils.core import Command
    1111from distutils.errors import DistutilsOptionError
    12 from distutils.util import get_platform
    1312
    14 
    15 def show_compilers ():
     13def show_compilers():
    1614    from distutils.ccompiler import show_compilers
    1715    show_compilers()
    1816
    19 
    20 class build (Command):
     17class build(Command):
    2118
    2219    description = "build everything needed to install"
     
    5653        ]
    5754
    58     def initialize_options (self):
     55    def initialize_options(self):
    5956        self.build_base = 'build'
    6057        # these are decided only after 'build_base' has its final value
     
    7168        self.executable = None
    7269
    73     def finalize_options (self):
    74 
     70    def finalize_options(self):
    7571        if self.plat_name is None:
    7672            self.plat_name = get_platform()
     
    121117        if self.executable is None:
    122118            self.executable = os.path.normpath(sys.executable)
    123     # finalize_options ()
    124119
    125 
    126     def run (self):
    127 
     120    def run(self):
    128121        # Run all relevant sub-commands.  This will be some subset of:
    129122        #  - build_py      - pure Python modules
     
    133126        for cmd_name in self.get_sub_commands():
    134127            self.run_command(cmd_name)
    135 
    136128
    137129    # -- Predicates for the sub-command list ---------------------------
     
    149141        return self.distribution.has_scripts()
    150142
    151 
    152143    sub_commands = [('build_py',      has_pure_modules),
    153144                    ('build_clib',    has_c_libraries),
     
    155146                    ('build_scripts', has_scripts),
    156147                   ]
    157 
    158 # class build
Note: See TracChangeset for help on using the changeset viewer.