[Distutils] ORed requirements

Phillip J. Eby pje at telecommunity.com
Sat Nov 11 02:51:28 CET 2006


At 08:03 PM 11/10/2006 -0500, Matt Good wrote:
>Is there a way to define a requirement like "PackageA or PackageB"?
>AFAICT there's no syntax to specify this type of requirement, so is
>there some other way to handle this in setup.py?

See 
http://peak.telecommunity.com/DevCenter/setuptools#declaring-extras-optional-features-with-their-own-dependencies 
for how to define "extras".  You would then tell people to install 
YourPackage[A] or YourPackage[B] to select which optional dependency they 
want to use.

There is no way to simply choose one to install at random, however.  :)



More information about the Distutils-SIG mailing list