Comment 0 for bug 1489969

Revision history for this message
Joshua Harlow (harlowja) wrote :

Noticed the following:

[09:48:13] <@harlowja> Python 2.6.6 (r266:84292, Dec 19 2012, 19:54:30)
[09:48:13] <@harlowja> [GCC 3.4.6 20060404 (Red Hat 3.4.6-11)] on linux2
[09:48:13] <@harlowja> Type "help", "copyright", "credits" or "license" for more information.
[09:48:13] <@harlowja> >>> import pkg_resources
[09:48:13] <@harlowja> >>> r = pkg_resources.Requirement.parse( 'requests>=1.2.1,<=2.2.1,!=2.4.0' )
[09:48:13] <@harlowja> >>> x = '2.4.3'
[09:48:13] <@harlowja> >>> x in r
[09:48:13] <@harlowja> True
[09:48:33] <@harlowja> Python 2.7.10 (default, Jun 18 2015, 15:58:36)
[09:48:33] <@harlowja> [GCC 4.1.2 20080704 (Red Hat 4.1.2-46)] on linux2
[09:48:33] <@harlowja> Type "help", "copyright", "credits" or "license" for more information.
[09:48:33] <@harlowja> >>> import pkg_resources
[09:48:33] <@harlowja> >>> r = pkg_resources.Requirement.parse( 'requests>=1.2.1,<=2.2.1,!=2.4.0' )
[09:48:33] <@harlowja> >>> x = '2.4.3'
[09:48:33] <@harlowja> >>> x in r

The 2.6 version is fixed by upgrading setuptools, so that it will then work like the 2.7 version.