On 23/12/11 16:39 +0100, Albert Cervera i Areny wrote: > I think we need that compatibility/dependency to be in the module definition. > So if the user installs the modules "purchase_shipment_cost" and > "stock_account_ango_saxon", then "purchase_shipment_cost_anglo_saxon" should > be automatically marked for installation as if it was a dependency.
So both module "purchase_shipment_cost" and "stock_account_ango_saxon" need to know each other. There is no such option in distutils and from my Gentoo packager experience, I never saw such dependencies. > That > information should probably come from the purchase_shipment_cost_anglo_saxon > module, or it may come from any of the other two. It can not because you can have the two modules without this one. > In case of the approach of modifying the existing module, maybe the > __tryton__ > file should also inform that the module takes into account a given set of > otherwise incompatible modules. I think it will be just an extra_dependency in setup.py (and in INSTALL). > I think we need a way to know which modules > require some others This is already there. > or check for their existance. I think extra_deps is enough. > As you said, if a module requires another one to be modified it may not be > possible to develop it for a previous version which I think it is very bad so > it sounds as the wrong solution from this point of view. Not too bad as we have release every 6 months. And moreover, it is already the case for many new modules like the groupby design change for the sale_supply_drop_shipment. > Ferdinand Gassauer > once suggested to be able for a module to include patches that would be > applied to existing modules. I don't like that idea very much but maybe it > inspires somebody for a more flexible solution. I don't see how it could work and even I don't see how it could fix our issue. Patching other module is the same as extending Models. -- Cédric Krier B2CK SPRL Rue de Rotterdam, 4 4000 Liège Belgium Tel: +32 472 54 46 59 Email/Jabber: [email protected] Website: http://www.b2ck.com/
pgp3EprqjmBd2.pgp
Description: PGP signature
