[Distutils] python setup.py develop and extras

Alex Clark aclark at aclark.net
Mon Nov 5 20:09:01 CET 2012


On 2012-11-05 06:33:45 +0000, Chris Withers said:

> Hi All,
> 
> If I'm doing:
> 
> python setep.py develop --allow-hosts=pypi.python.org
> 
> ...to install a checkout of a package into a virutalenv, how do I
> specify what extras (docs,testing in this case) I'd like?


In setup.py, you can do:

install_requires=[
  'foo[bar]',
]

where "bar" is the name of the extras_require, not sure if that helps 
you or not.



> 
> cheers,
> 
> Chris


-- 
Alex Clark · https://www.gittip.com/aclark4life/




More information about the Distutils-SIG mailing list