diff -r 8036d819b7d0 -r 6b68c2835d6e Lib/packaging/command/cmd.py --- a/Lib/packaging/command/cmd.py Thu Jun 16 18:51:42 2011 -0500 +++ b/Lib/packaging/command/cmd.py Fri Jun 17 09:16:39 2011 +0800 @@ -317,9 +317,12 @@ cmd_obj.ensure_finalized() return cmd_obj - def get_reinitialized_command(self, command, reinit_subcommands=False): - return self.distribution.get_reinitialized_command( - command, reinit_subcommands) + def get_reinitialized_command(self, command, reinit_subcommands=False, **kw): + cmd_obj = self.distribution.get_reinitialized_command(command, + reinit_subcommands) + for k,v in kw.items(): + setattr(cmd_obj,k,v) #update command object with keywords + return cmd_obj def run_command(self, command): """Run some other command: uses the 'run_command()' method of