On 11/16/2011 05:42 PM, Toshio Kuratomi wrote:
On Wed, Nov 16, 2011 at 10:09:36AM +0000, Pádraig Brady wrote:
>
> Yes it's awkward. Here are my rebuild notes for 0.6.8 on RHEL 6.2
>
> python-nose is not new enough to build. The correct version wasn't specified in
the spec though and the resultant error crashed RHEL once:
https://bugzilla.redhat.com/show_bug.cgi?id=753505 I hacked together an updated
python-nose to allow running sqlalchemy %checks which passed, but then disabled the
%checks so as not to need a newer python-nose (and the newer packages it in turn needs to
be built with).
>
> In case it's of use, you can find the RHEL python-sqlalchemy-0.6.8 packages I was
testing with, here
http://www.pixelbeat.org/openstack/
>
Cool. Will Openstack work with SQLAlchemy0.7? I ask because I'm always looking for
ways to reduce work and if we can use the latest SQLAlchemy that will mean we don't
have to maintain both python-sqlalchemy0.6 and python-sqlalchemy0.7 packages down the
road.
Yes it probably makes sense to jump to 0.7.
Mark McLoughlin fixed a load of migration issues with 0.7 (F16)
and pushed those fixes upstream, so it should work.
Note I'm testing with getting openstack to monkey patch sqlalchemy,
which avoids epel having to host an updated version of this package.
It is quite a small patch at present.
There are risks we'll hit bugs fixed between 0.5.5 and 0.6.6
(the main version openstack is tested with), but it's worth a try.
About unittests, we probably want to either disable just the specific
unittests or add a compat package with the newer versions of nose. RHEL6 seems to include
0.10.4 and the current version is 1.1.2. I can see the newer version being useful to
people doing work with it (although they'll need to modify their behaviour slightly;
using /usr/bin/nosetests-1.1, for instance.) Not sure if running nosetests-1.1 will be
sufficient to use the correct nose module or if we'd have to also set PYTHONPATH to
point at the correct version of nose explicitly. Worth a try at least.
Note %check in newer python-nose has further dependencies outside of RHEL,
which I disabled when building my hacked up version.
cheers,
Pádraig.