[EMAIL PROTECTED] wrote:
> Suppose I have a setup.py script which imports distutils.core.setup.  Is
> there some way to, for example, add a command line flag to the build command
> so that I can run it like
> 
>     python setup.py build --frob=True
> 
> ? 

You should inherit from the build command, extend the user_options
attribute, and pass the new class as "build" class into the commands
dictionary of setup. You might need to extend initialize_options and
finalize_options as well.

Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to