Python2.6 pkg_resources allowing incompat versions
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
anvil |
Fix Committed
|
Undecided
|
Unassigned |
Bug Description
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.
[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.
[09:48:33] <@harlowja> >>> x = '2.4.3'
[09:48:33] <@harlowja> >>> x in r
[09:48:33] <@harlowja> False
The 2.6 version is fixed by upgrading setuptools, so that it will then work like the 2.7 version.
description: | updated |
Reviewed: https:/ /review. openstack. org/218393 /git.openstack. org/cgit/ stackforge/ anvil/commit/ ?id=7c027d40e2b 616ba57f7c69f81 62a6311461a566
Committed: https:/
Submitter: Jenkins
Branch: master
commit 7c027d40e2b616b a57f7c69f8162a6 311461a566
Author: Joshua Harlow <email address hidden>
Date: Fri Aug 28 10:14:28 2015 -0700
Ensure setuptools is somewhat recent
Due to bugs in older setuptools version parsing
we need to set a relatively new version of setuptools
so that parsing works better (and/or correctly).
This seems especially important on 2.6 which due to
a busted setuptools (and associated pkg_resources) seems
to be matching against incorrect versions.
Closes-bug: #1489969
Change-Id: Ib859c7df955ede f0f38c5673bd21a 4767c781e4a