Auto adapt to change of main distribution name

Bug #1332147 reported by Georges Racinet
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenERP buildout recipe
Fix Committed
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

Revision history for this message
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
Revision history for this message
Georges Racinet (gracinet) wrote :

Can wait a bit

Changed in anybox.recipe.openerp:
milestone: 1.8.5 → 1.8.6
Revision history for this message
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.

Revision history for this message
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

Revision history for this message
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
Revision history for this message
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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.