mirror of
https://github.com/python/cpython.git
synced 2025-07-23 03:05:38 +00:00
Renamed all command classes so they're exactly the same as the name of the
command itself: no more of this "FooBar class for foo_bar command" silliness.
This commit is contained in:
parent
e1b1c94a0c
commit
1993f9ad0e
10 changed files with 10 additions and 10 deletions
|
@ -10,7 +10,7 @@ import os
|
||||||
from distutils.core import Command
|
from distutils.core import Command
|
||||||
|
|
||||||
|
|
||||||
class Build (Command):
|
class build (Command):
|
||||||
|
|
||||||
description = "build everything needed to install"
|
description = "build everything needed to install"
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,7 @@ from distutils.errors import *
|
||||||
from distutils.ccompiler import new_compiler
|
from distutils.ccompiler import new_compiler
|
||||||
|
|
||||||
|
|
||||||
class BuildLib (Command):
|
class build_lib (Command):
|
||||||
|
|
||||||
options = [('debug', 'g',
|
options = [('debug', 'g',
|
||||||
"compile with debugging information"),
|
"compile with debugging information"),
|
||||||
|
|
|
@ -20,7 +20,7 @@ extension_name_re = re.compile \
|
||||||
(r'^[a-zA-Z_][a-zA-Z_0-9]*(\.[a-zA-Z_][a-zA-Z_0-9]*)*$')
|
(r'^[a-zA-Z_][a-zA-Z_0-9]*(\.[a-zA-Z_][a-zA-Z_0-9]*)*$')
|
||||||
|
|
||||||
|
|
||||||
class BuildExt (Command):
|
class build_ext (Command):
|
||||||
|
|
||||||
description = "build C/C++ extensions (compile/link to build directory)"
|
description = "build C/C++ extensions (compile/link to build directory)"
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,7 @@ from distutils.errors import *
|
||||||
from distutils.ccompiler import new_compiler
|
from distutils.ccompiler import new_compiler
|
||||||
|
|
||||||
|
|
||||||
class BuildLib (Command):
|
class build_lib (Command):
|
||||||
|
|
||||||
options = [('debug', 'g',
|
options = [('debug', 'g',
|
||||||
"compile with debugging information"),
|
"compile with debugging information"),
|
||||||
|
|
|
@ -14,7 +14,7 @@ from distutils.core import Command
|
||||||
from distutils.errors import *
|
from distutils.errors import *
|
||||||
|
|
||||||
|
|
||||||
class BuildPy (Command):
|
class build_py (Command):
|
||||||
|
|
||||||
description = "\"build\" pure Python modules (copy to build directory)"
|
description = "\"build\" pure Python modules (copy to build directory)"
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,7 @@ from distutils.core import Command
|
||||||
from distutils.util import write_file
|
from distutils.util import write_file
|
||||||
|
|
||||||
|
|
||||||
class Install (Command):
|
class install (Command):
|
||||||
|
|
||||||
description = "install everything from build directory"
|
description = "install everything from build directory"
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@ __rcsid__ = "$Id$"
|
||||||
from distutils.core import Command
|
from distutils.core import Command
|
||||||
from distutils.util import copy_tree
|
from distutils.util import copy_tree
|
||||||
|
|
||||||
class InstallExt (Command):
|
class install_ext (Command):
|
||||||
|
|
||||||
description = "install C/C++ extension modules"
|
description = "install C/C++ extension modules"
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@ import sys, string
|
||||||
from distutils.core import Command
|
from distutils.core import Command
|
||||||
from distutils.util import copy_tree
|
from distutils.util import copy_tree
|
||||||
|
|
||||||
class InstallPy (Command):
|
class install_py (Command):
|
||||||
|
|
||||||
description = "install pure Python modules"
|
description = "install pure Python modules"
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@ import sys, string
|
||||||
from distutils.core import Command
|
from distutils.core import Command
|
||||||
from distutils.util import copy_tree
|
from distutils.util import copy_tree
|
||||||
|
|
||||||
class InstallPy (Command):
|
class install_py (Command):
|
||||||
|
|
||||||
description = "install pure Python modules"
|
description = "install pure Python modules"
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,7 @@ from distutils.text_file import TextFile
|
||||||
from distutils.errors import DistutilsExecError
|
from distutils.errors import DistutilsExecError
|
||||||
|
|
||||||
|
|
||||||
class Sdist (Command):
|
class sdist (Command):
|
||||||
|
|
||||||
description = "create a source distribution (tarball, zip file, etc.)"
|
description = "create a source distribution (tarball, zip file, etc.)"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue