[New-bugs-announce] [issue12344] A kind of 'reinitialize_command' function which can initialize a command with key-value pair should be added for Command class
report at bugs.python.org
Thu Jun 16 04:08:25 CEST 2011
New submission from higery <shoulderhigher at gmail.com>:
There is a 'reinitialize_command' function in setuptools' command class which can initialize a command with a key-value pair, but it seems that distutils2/packaging does not yet have this function. I think it's useful in the condition that we want to run some commands with some options initialized.
For instance, if we want to run 'build_ext' command with its 'inplace' option initialized, we can use : self.reinitialize_command('build_ext', inplace=1), and then self.run_command('build_ext') .
nosy: alexis, eric.araujo, higery, tarek
title: A kind of 'reinitialize_command' function which can initialize a command with key-value pair should be added for Command class
type: feature request
versions: Python 3.3
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce