[Zope3-checkins] [Checkins] SVN: bluebream/branches/ccomb-merge-templates/ merge from the trunk

Stephan Richter srichter at cosmos.phy.tufts.edu
Wed Mar 31 20:49:08 EDT 2010


On Wednesday 31 March 2010, Christophe Combelles wrote:
> +parser.add_option("--setuptools",
> +                   action="store_true", dest="setuptools", default=False,
> +                   help="Use Setuptools rather than Distribute.")
>  parser.add_option("-d", "--distribute",
> -                   action="store_true", dest="distribute", default=False,
> -                   help="Use Disribute rather than Setuptools.")
> -
> +                   action="store_true", dest="distribute", default=True,
> +                   help="For backward compatibility. "
> +                        "Distribute is used by default.")
>  parser.add_option("-c", None, action="store", dest="config_file",
>                     help=("Specify the path to the buildout configuration "
>                           "file to be used."))
> @@ -51,6 +54,8 @@
>      VERSION = ''
>  
>  USE_DISTRIBUTE = options.distribute
> +if options.setuptools:
> +    USE_DISTRIBUTE = False

You can use ``action="store_false"`` for setuptools and use the distribute 
options variable.

Regards,
Stephan
-- 
Entrepreneur and Software Geek
Google me. "Zope Stephan Richter"


More information about the Zope3-Checkins mailing list