mirror of
https://github.com/python/cpython.git
synced 2025-09-27 02:39:58 +00:00
Untabified.
This commit is contained in:
parent
4cd6f2ab80
commit
fa9ff76aae
8 changed files with 14 additions and 14 deletions
|
@ -45,7 +45,7 @@ class bdist (Command):
|
||||||
help_options = [
|
help_options = [
|
||||||
('help-formats', None,
|
('help-formats', None,
|
||||||
"lists available distribution formats", show_formats),
|
"lists available distribution formats", show_formats),
|
||||||
]
|
]
|
||||||
|
|
||||||
# The following commands do not take a format option from bdist
|
# The following commands do not take a format option from bdist
|
||||||
no_format_option = ('bdist_rpm',)
|
no_format_option = ('bdist_rpm',)
|
||||||
|
|
|
@ -47,7 +47,7 @@ class build (Command):
|
||||||
help_options = [
|
help_options = [
|
||||||
('help-compiler', None,
|
('help-compiler', None,
|
||||||
"list available compilers", show_compilers),
|
"list available compilers", show_compilers),
|
||||||
]
|
]
|
||||||
|
|
||||||
def initialize_options (self):
|
def initialize_options (self):
|
||||||
self.build_base = 'build'
|
self.build_base = 'build'
|
||||||
|
|
|
@ -53,7 +53,7 @@ class build_clib (Command):
|
||||||
help_options = [
|
help_options = [
|
||||||
('help-compiler', None,
|
('help-compiler', None,
|
||||||
"list available compilers", show_compilers),
|
"list available compilers", show_compilers),
|
||||||
]
|
]
|
||||||
|
|
||||||
def initialize_options (self):
|
def initialize_options (self):
|
||||||
self.build_clib = None
|
self.build_clib = None
|
||||||
|
|
|
@ -60,7 +60,7 @@ class clean (Command):
|
||||||
# remove build directories
|
# remove build directories
|
||||||
for directory in (self.build_lib,
|
for directory in (self.build_lib,
|
||||||
self.bdist_base,
|
self.bdist_base,
|
||||||
self.build_scripts):
|
self.build_scripts):
|
||||||
if os.path.exists(directory):
|
if os.path.exists(directory):
|
||||||
remove_tree(directory, self.verbose, self.dry_run)
|
remove_tree(directory, self.verbose, self.dry_run)
|
||||||
else:
|
else:
|
||||||
|
|
|
@ -498,7 +498,7 @@ class install (Command):
|
||||||
self.record)
|
self.record)
|
||||||
|
|
||||||
sys_path = map(os.path.normpath, sys.path)
|
sys_path = map(os.path.normpath, sys.path)
|
||||||
sys_path = map(os.path.normcase, sys_path)
|
sys_path = map(os.path.normcase, sys_path)
|
||||||
install_lib = os.path.normcase(os.path.normpath(self.install_lib))
|
install_lib = os.path.normcase(os.path.normpath(self.install_lib))
|
||||||
if (self.warn_dir and
|
if (self.warn_dir and
|
||||||
not (self.path_file and self.install_path_file) and
|
not (self.path_file and self.install_path_file) and
|
||||||
|
|
|
@ -38,10 +38,10 @@ class install_data (Command):
|
||||||
|
|
||||||
def finalize_options (self):
|
def finalize_options (self):
|
||||||
self.set_undefined_options('install',
|
self.set_undefined_options('install',
|
||||||
('install_data', 'install_dir'),
|
('install_data', 'install_dir'),
|
||||||
('root', 'root'),
|
('root', 'root'),
|
||||||
('force', 'force'),
|
('force', 'force'),
|
||||||
)
|
)
|
||||||
|
|
||||||
def run (self):
|
def run (self):
|
||||||
self.mkpath(self.install_dir)
|
self.mkpath(self.install_dir)
|
||||||
|
|
|
@ -74,7 +74,7 @@ class sdist (Command):
|
||||||
help_options = [
|
help_options = [
|
||||||
('help-formats', None,
|
('help-formats', None,
|
||||||
"list available distribution formats", show_formats),
|
"list available distribution formats", show_formats),
|
||||||
]
|
]
|
||||||
|
|
||||||
negative_opt = {'no-defaults': 'use-defaults',
|
negative_opt = {'no-defaults': 'use-defaults',
|
||||||
'no-prune': 'prune' }
|
'no-prune': 'prune' }
|
||||||
|
|
|
@ -461,8 +461,8 @@ class Distribution:
|
||||||
negative_opt = copy(negative_opt)
|
negative_opt = copy(negative_opt)
|
||||||
negative_opt.update(cmd_class.negative_opt)
|
negative_opt.update(cmd_class.negative_opt)
|
||||||
|
|
||||||
# Check for help_options in command class. They have a different
|
# Check for help_options in command class. They have a different
|
||||||
# format (tuple of four) so we need to preprocess them here.
|
# format (tuple of four) so we need to preprocess them here.
|
||||||
if (hasattr(cmd_class, 'help_options') and
|
if (hasattr(cmd_class, 'help_options') and
|
||||||
type(cmd_class.help_options) is ListType):
|
type(cmd_class.help_options) is ListType):
|
||||||
help_options = fix_help_options(cmd_class.help_options)
|
help_options = fix_help_options(cmd_class.help_options)
|
||||||
|
@ -487,7 +487,7 @@ class Distribution:
|
||||||
for (help_option, short, desc, func) in cmd_class.help_options:
|
for (help_option, short, desc, func) in cmd_class.help_options:
|
||||||
if hasattr(opts, parser.get_attr_name(help_option)):
|
if hasattr(opts, parser.get_attr_name(help_option)):
|
||||||
help_option_found=1
|
help_option_found=1
|
||||||
#print "showing help for option %s of command %s" % \
|
#print "showing help for option %s of command %s" % \
|
||||||
# (help_option[0],cmd_class)
|
# (help_option[0],cmd_class)
|
||||||
|
|
||||||
if callable(func):
|
if callable(func):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue