# remove build directories
for directory in (self.build_lib,
self.bdist_base,
- self.build_scripts):
+ self.build_scripts):
if os.path.exists(directory):
remove_tree(directory, self.verbose, self.dry_run)
else:
self.record)
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))
if (self.warn_dir and
not (self.path_file and self.install_path_file) and
def finalize_options (self):
self.set_undefined_options('install',
- ('install_data', 'install_dir'),
- ('root', 'root'),
+ ('install_data', 'install_dir'),
+ ('root', 'root'),
('force', 'force'),
- )
+ )
def run (self):
self.mkpath(self.install_dir)
user_filename = ".pydistutils.cfg"
else:
user_filename = "pydistutils.cfg"
-
+
# And look for the user config file
if os.environ.has_key('HOME'):
user_file = os.path.join(os.environ.get('HOME'), user_filename)
negative_opt = copy(negative_opt)
negative_opt.update(cmd_class.negative_opt)
- # Check for help_options in command class. They have a different
- # format (tuple of four) so we need to preprocess them here.
+ # Check for help_options in command class. They have a different
+ # format (tuple of four) so we need to preprocess them here.
if (hasattr(cmd_class, 'help_options') and
type(cmd_class.help_options) is ListType):
help_options = fix_help_options(cmd_class.help_options)
for (help_option, short, desc, func) in cmd_class.help_options:
if hasattr(opts, parser.get_attr_name(help_option)):
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)
if callable(func):
return
# _show_help ()
-
+
def handle_display_options (self, option_order):
"""If there were any non-global "display-only" options