Mercurial > cpython-lru_cache-weakref
diff Lib/distutils/command/build.py @ 63136:29a3eda89995
reverted distutils its 3.1 state. All new work is now happening in disutils2, and distutils is now feature-frozen.
| author | Tarek Ziadé <ziade.tarek@gmail.com> |
|---|---|
| date | Thu, 22 Jul 2010 12:50:05 +0000 |
| parents | 38b90fe34623 |
| children | 3e26c9033306 |
line wrap: on
line diff
--- a/Lib/distutils/command/build.py Thu Jul 22 07:40:56 2010 +0000 +++ b/Lib/distutils/command/build.py Thu Jul 22 12:50:05 2010 +0000 @@ -5,15 +5,16 @@ __revision__ = "$Id$" import sys, os - -from distutils.util import get_platform from distutils.core import Command from distutils.errors import DistutilsOptionError +from distutils.util import get_platform + def show_compilers(): from distutils.ccompiler import show_compilers show_compilers() + class build(Command): description = "build everything needed to install" @@ -126,6 +127,7 @@ for cmd_name in self.get_sub_commands(): self.run_command(cmd_name) + # -- Predicates for the sub-command list --------------------------- def has_pure_modules(self): @@ -140,6 +142,7 @@ def has_scripts(self): return self.distribution.has_scripts() + sub_commands = [('build_py', has_pure_modules), ('build_clib', has_c_libraries), ('build_ext', has_ext_modules),
