[Pulp-list] [devel] Upgrading mongoengine and pymongo for Pulp 2.7.0+

Brian Bouterse bbouters at redhat.com
Mon Jun 29 17:42:03 UTC 2015


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

I merged a commit [0] to 2.7-testing (2.7.0) which updates pymongo to
2.7.2 and mongoengine to 0.9.0. When you are developing on Pulp 2.7.0
or later your developer environment needs to be using at least these
versions.

These rpms will be available on el6, el7, fc21, and fc22 in the 2.7.0
beta repo soon but they aren't there just yet. In the mean time, to
install these before they are available as built rpms, I recommend
installing from PyPI.

To install from PyPI you should:

1. Uninstall the python-mongoengine rpm.
2. Uninstall pymongo and its associated rpms. I believe these rpms are
called (python-pymongo, python-bson, and python-pymongo-gridfs).
3. Install pymongo first by running `sudo pip install pymongo==2.7.2`.
You need to use use something < 3.0 because of pymongo reverse
incompatible changes in 3.0, and I recommend using 2.7.2 so any issues
with the version our users will use are discovered earlier.
4. Install mongoengine with `pip install mongoengine==0.9.0`

If you upgrade as described above and then you want to downgrade
(perhaps to work on a 2.6.x release) you can reinstall with pip and
specify mongoengine==0.7.10 and pymongo==2.5.3 or uninstall via pip
and yum install mongoengine which will give you the pre-upgraded
versions also. The second approach is probably how you get the
pre-upgraded deps the first time.

Remember, friends don't let friends mix yum and pip installs of the
same package on the same machine. E-mail if there are questions.

[0]:
https://github.com/pulp/pulp/commit/333e73cbe542ab1b727375ebab2278917572
6e6a

- -Brian
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJVkYNrAAoJEK48cdELyEfyhwwH/2TOWHWTVbKaS3wZxz9x8/jE
hklKMG1/4abZAgZHAotRykRDPSZXMnTczhY6fxIqRGtnbvsbllVXbr9IwxThViCw
IFIWBbtljoVGsWKyQ98iZdrjEyYkBUxu2nBw5XS97251v6tjByyjTXc25zzGd98X
m0ghyjttmzJNxR9CBhOlQDyfqAtvy3gZRtVftiM6Ig1brWte/0eds9kB/jQt0VWv
1VZwSUOYeGR+hgOmDooaIRvDBr9lq+ESSkEtMtiUuRGsOikw9clzZRzT6Amz+I9E
HHgkIwexfT50Vdw4+GeVJs1DG45Xc8f14J3lCSX1bBgqQQcTALmpHcHW1sK4e8g=
=HRed
-----END PGP SIGNATURE-----




More information about the Pulp-list mailing list