[Cubicweb] CWEP 0004 - Cubes as distributions
Christophe de Vienne
christophe at unlish.com
Thu Oct 23 12:47:05 CEST 2014
Le 23/10/2014 12:04, Nicolas Chauvat a écrit :
> On Thu, Oct 23, 2014 at 11:40:04AM +0200, Christophe de Vienne wrote:
>> I meant, it is not a setuptools namespace package. You cannot have
>> multiple "hgext" directories across your filesystem acting like a
>> single package.
>> But here we would need to split the namespace "cubes" across
>> multiple directories.
> Could you explain again why you think this is needed?
> Why would building a single python package from different directories
> be better than looking up the elements in the directories given by a
> PATH ?
It allows to import things from any cube.
It relies on the python import mechanism instead of implementing a mimic
If we consider cubes are distributions, but still want the 'cubes'
namespace, we need this namespace mechanism.
More information about the Cubicweb