Auto adapt to change of main distribution name

Bug #1332147 reported by Georges Racinet on 2014-06-19
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenERP buildout recipe
Medium
Unassigned

Bug Description

At some point, the name of the main distribution might change from openerp to odoo or even something else in the future.
The recipe is not ready for that yet.

See for instance this pull request : https://github.com/odoo/odoo/pull/441

Since the recipe instrospects setup.py, it can read the name from it, and use it in its internal requirement (see merge_requirements() of ServerRecipe) instead of requiring a for now hardcoded 'openerp'

Related branches

Georges Racinet (gracinet) wrote :

Actually it'll be critical the day the name changes, but that's not today.

Changed in anybox.recipe.openerp:
importance: Critical → Medium
status: New → Confirmed
Georges Racinet (gracinet) wrote :

Can wait a bit

Changed in anybox.recipe.openerp:
milestone: 1.8.5 → 1.8.6
Georges Racinet (gracinet) wrote :

It happened : https://github.com/odoo/odoo/commit/d26a354c99565e4954f7e7f49af089f2c7c092b0

Surprisingly, the buildout I'm using to test does work. The requirements used internally are wrong anyway (should have 'odoo', not 'openerp') and I'm fixing them right now.

Georges Racinet (gracinet) wrote :

It breaks at least the offline mode:

Couldn't find index page for 'openerp' (maybe misspelled?)
anybox.recipe.openerp.base: Could not find or install 'openerp'. Original exception zc.buildout.UserError says: We don't have a distribution for openerp
and can't install one in offline (no-install) mode.

While:
  Installing odoo.
Error: We don't have a distribution for openerp
and can't install one in offline (no-install) mode.

this "installing odoo" is based on the part name

Georges Racinet (gracinet) wrote :

The recipe should now be insensitive with respect to the project name in Odoo's setup.py

Changed in anybox.recipe.openerp:
status: Confirmed → Fix Committed
Georges Racinet (gracinet) wrote :

Another symptom (seen on our buildbot) would have been to fail with:

Installing openerp 8.0
Caused installation of a distribution:
odoo 8.0
with a different project name.
Got None.
While:
  Updating odoo.
Error: There is a version conflict.
We already have: odoo 8.0

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers