[Distutils] setuptools: can I specify different install_requires for different python versions?

P.J. Eby pje at telecommunity.com
Tue Jul 28 21:26:52 CEST 2009


At 03:04 PM 7/28/2009 -0400, Matthew Wilson wrote:
>I have a package that depends on the multiprocessing package, which
>got added to the standard library as of 2.6.
>
>So, for only those people using python versions before 2.6, I want to
>require they install multiprocessing.
>
>Is this possible?

Yes.  Write your setup.py to check the Python version, and build up 
the requirements in a variable before calling setup().



More information about the Distutils-SIG mailing list