Re: working with different requirements depending on python version

Chris Jerdonek <[email protected]>
Newsgroups gmane.comp.python.distutils.devel,gmane.comp.python.testing.general,gmane.comp.web.zope.devel
Message-ID <CAOTb1weBdsBqmpjZcECu4+vh1YSXcve4kjB3y0Wqnkgtnaj-cw@mail.gmail.com>
On Sat, Jun 30, 2012 at 5:54 AM, Chris Withers <[email protected]> wrote:
>
> The version requirement is "use the latest version of all packages that work with the Python version under test" and the changes I've suggested would mean that on Python 2.6 and 2.7, the latest version of zope.interface wouldn't be used.
>
> What makes this even more "interesting" is that zope.interface isn't a direct requirement of either of these projects, it's a dependency of a dependency in both cases.
>
> How have other people solved this?

This might not be applicable because I haven't used Jenkins or
buildout (but I do use tox).  In cases where I've had different
requirements for different Python versions, I've done the
determination in setup.py.  There I determined the 'install_requires'
argument to setup() differently depending on the Python version.

--Chris
_______________________________________________
Distutils-SIG maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/distutils-sig
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.