[Cubicweb] Move sources to a sub-directory

Christophe de Vienne christophe at unlish.com
Mon Sep 1 10:37:35 CEST 2014


Le 01/09/2014 10:11, Denis Laxalde a écrit :
> Christophe de Vienne a écrit :
>>>>> I also really like this kind of workflow and the idea to only 
>>>>> checkout
>>>>> what you need to hack on. Even better if it could be combined with
>>>>> system/distribution packages, not just pypi.
>>>>
>>>> It can, you just have to use the "--system-site-packages" switch of
>>>> virtualenv.
>>>
>>> Even for cubes in /usr/share/cubicweb/cubes?
>>
>> Cubes are not packages (yet :-p), so it works differently. You will
>> still need a "cubes" directory to checkout your cubes.
>> You can, however, use a CW_CUBES_PATH with multiple paths in it.
>
> Yes, as far as application running (cw-ctl) is concerned. This is 
> quite independent of the virtualenv.
>
> My concern is more about running tests. In my experience it is quite 
> hard to use both cubes from a source tree and cubes from the system. I 
> wonder if this couldn't be solved by making the "cubes" package a 
> namespace package.

It would help to change the cubes into standard packages.
But having them in a namespace is not mandatory.

I would personally not use a namespace but a simple prefix.
For example, the blog cube would have "cubicweb_blog" as a package name.


Christophe



More information about the Cubicweb mailing list