Changeset 391 for python/trunk/Lib/distutils/command/build.py
- Timestamp:
- Mar 19, 2014, 11:31:01 PM (11 years ago)
- Location:
- python/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
python/trunk
-
Property svn:mergeinfo
set to
/python/vendor/Python-2.7.6 merged eligible /python/vendor/current merged eligible
-
Property svn:mergeinfo
set to
-
python/trunk/Lib/distutils/command/build.py
r2 r391 3 3 Implements the Distutils 'build' command.""" 4 4 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$" 8 6 9 7 import sys, os 8 9 from distutils.util import get_platform 10 10 from distutils.core import Command 11 11 from distutils.errors import DistutilsOptionError 12 from distutils.util import get_platform13 12 14 15 def show_compilers (): 13 def show_compilers(): 16 14 from distutils.ccompiler import show_compilers 17 15 show_compilers() 18 16 19 20 class build (Command): 17 class build(Command): 21 18 22 19 description = "build everything needed to install" … … 56 53 ] 57 54 58 def initialize_options 55 def initialize_options(self): 59 56 self.build_base = 'build' 60 57 # these are decided only after 'build_base' has its final value … … 71 68 self.executable = None 72 69 73 def finalize_options (self): 74 70 def finalize_options(self): 75 71 if self.plat_name is None: 76 72 self.plat_name = get_platform() … … 121 117 if self.executable is None: 122 118 self.executable = os.path.normpath(sys.executable) 123 # finalize_options ()124 119 125 126 def run (self): 127 120 def run(self): 128 121 # Run all relevant sub-commands. This will be some subset of: 129 122 # - build_py - pure Python modules … … 133 126 for cmd_name in self.get_sub_commands(): 134 127 self.run_command(cmd_name) 135 136 128 137 129 # -- Predicates for the sub-command list --------------------------- … … 149 141 return self.distribution.has_scripts() 150 142 151 152 143 sub_commands = [('build_py', has_pure_modules), 153 144 ('build_clib', has_c_libraries), … … 155 146 ('build_scripts', has_scripts), 156 147 ] 157 158 # class build
Note:
See TracChangeset
for help on using the changeset viewer.