mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Remove obsolete verbose arguments from packaging.
Logging replaces verbose arguments. I haven’t fixed the example in Doc/install/install.rst because I have major fixes and changes to the oc under way and will fix or remove that example as part of that task.
This commit is contained in:
parent
9b5c7f44fa
commit
4d15546504
14 changed files with 44 additions and 57 deletions
|
@ -153,8 +153,7 @@ def show_compilers():
|
|||
pretty_printer.print_help("List of available compilers:")
|
||||
|
||||
|
||||
def new_compiler(plat=None, compiler=None, verbose=0, dry_run=False,
|
||||
force=False):
|
||||
def new_compiler(plat=None, compiler=None, dry_run=False, force=False):
|
||||
"""Generate an instance of some CCompiler subclass for the supplied
|
||||
platform/compiler combination. 'plat' defaults to 'os.name'
|
||||
(eg. 'posix', 'nt'), and 'compiler' defaults to the default compiler
|
||||
|
@ -183,11 +182,7 @@ def new_compiler(plat=None, compiler=None, verbose=0, dry_run=False,
|
|||
cls = resolve_name(cls)
|
||||
_COMPILERS[compiler] = cls
|
||||
|
||||
|
||||
# XXX The None is necessary to preserve backwards compatibility
|
||||
# with classes that expect verbose to be the first positional
|
||||
# argument.
|
||||
return cls(None, dry_run, force)
|
||||
return cls(dry_run, force)
|
||||
|
||||
|
||||
def gen_preprocess_options(macros, include_dirs):
|
||||
|
|
|
@ -47,8 +47,8 @@ class BCPPCompiler(CCompiler) :
|
|||
exe_extension = '.exe'
|
||||
|
||||
|
||||
def __init__(self, verbose=0, dry_run=False, force=False):
|
||||
super(BCPPCompiler, self).__init__(verbose, dry_run, force)
|
||||
def __init__(self, dry_run=False, force=False):
|
||||
super(BCPPCompiler, self).__init__(dry_run, force)
|
||||
|
||||
# These executables are assumed to all be in the path.
|
||||
# Borland doesn't seem to use any special registry settings to
|
||||
|
|
|
@ -79,10 +79,9 @@ class CCompiler:
|
|||
}
|
||||
language_order = ["c++", "objc", "c"]
|
||||
|
||||
def __init__(self, verbose=0, dry_run=False, force=False):
|
||||
def __init__(self, dry_run=False, force=False):
|
||||
self.dry_run = dry_run
|
||||
self.force = force
|
||||
self.verbose = verbose
|
||||
|
||||
# 'output_dir': a common output directory for object, library,
|
||||
# shared object, and shared library files
|
||||
|
|
|
@ -92,8 +92,8 @@ class CygwinCCompiler(UnixCCompiler):
|
|||
shared_lib_format = "%s%s"
|
||||
exe_extension = ".exe"
|
||||
|
||||
def __init__(self, verbose=0, dry_run=False, force=False):
|
||||
super(CygwinCCompiler, self).__init__(verbose, dry_run, force)
|
||||
def __init__(self, dry_run=False, force=False):
|
||||
super(CygwinCCompiler, self).__init__(dry_run, force)
|
||||
|
||||
status, details = check_config_h()
|
||||
logger.debug("Python's GCC status: %s (details: %s)", status, details)
|
||||
|
@ -270,8 +270,8 @@ class Mingw32CCompiler(CygwinCCompiler):
|
|||
name = 'mingw32'
|
||||
description = 'MinGW32 compiler'
|
||||
|
||||
def __init__(self, verbose=0, dry_run=False, force=False):
|
||||
super(Mingw32CCompiler, self).__init__(verbose, dry_run, force)
|
||||
def __init__(self, dry_run=False, force=False):
|
||||
super(Mingw32CCompiler, self).__init__(dry_run, force)
|
||||
|
||||
# ld_version >= "2.13" support -shared so use it instead of
|
||||
# -mdll -static
|
||||
|
|
|
@ -309,8 +309,8 @@ class MSVCCompiler(CCompiler) :
|
|||
static_lib_format = shared_lib_format = '%s%s'
|
||||
exe_extension = '.exe'
|
||||
|
||||
def __init__(self, verbose=0, dry_run=False, force=False):
|
||||
super(MSVCCompiler, self).__init__(verbose, dry_run, force)
|
||||
def __init__(self, dry_run=False, force=False):
|
||||
super(MSVCCompiler, self).__init__(dry_run, force)
|
||||
self.__version = VERSION
|
||||
self.__root = r"Software\Microsoft\VisualStudio"
|
||||
# self.__macros = MACROS
|
||||
|
|
|
@ -236,8 +236,8 @@ class MSVCCompiler(CCompiler):
|
|||
static_lib_format = shared_lib_format = '%s%s'
|
||||
exe_extension = '.exe'
|
||||
|
||||
def __init__(self, verbose=0, dry_run=False, force=False):
|
||||
super(MSVCCompiler, self).__init__(verbose, dry_run, force)
|
||||
def __init__(self, dry_run=False, force=False):
|
||||
super(MSVCCompiler, self).__init__(dry_run, force)
|
||||
self.__version = get_build_version()
|
||||
self.__arch = get_build_architecture()
|
||||
if self.__arch == "Intel":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue