diff -r 6e5312167b4a distutils2/run.py --- a/distutils2/run.py Sat Apr 21 10:30:23 2012 -0400 +++ b/distutils2/run.py Sat May 05 21:44:03 2012 +0200 @@ -254,6 +254,16 @@ parser = dispatcher.parser args = args[1:] + # create the Distribution class + # need to feed setup.cfg here ! + dist = Distribution() + + # Find and parse the config file(s): they will override options from + # the setup script, but be overridden by the command line. + + # XXX still need to be extracted from Distribution + dist.parse_config_files() + commands = STANDARD_COMMANDS # FIXME display extra commands if args == ['--list-commands']: @@ -269,16 +279,6 @@ if args is None: return - # create the Distribution class - # need to feed setup.cfg here ! - dist = Distribution() - - # Find and parse the config file(s): they will override options from - # the setup script, but be overridden by the command line. - - # XXX still need to be extracted from Distribution - dist.parse_config_files() - for cmd in dispatcher.commands: # FIXME need to catch MetadataMissingError here (from the check command # e.g.)--or catch any exception, print an error message and exit with 1

AltStyle によって変換されたページ (->オリジナル) /