On 08/28/2014 12:22 PM, Doug Hellmann wrote:
>
> On Aug 28, 2014, at 6:41 AM, Radomir Dopieralski <[email protected]>
> wrote:
>
>> On 27/08/14 16:31, Sean Dague wrote:
>>
>> [snip]
>>
>>> In python 2.7 (using pip) namespaces are a bolt on because of the way
>>> importing modules works. And depending on how you install things in a
>>> namespace will overwrite the base __init__.py for the top level part of
>>> the namespace in such a way that you can't get access to the submodules.
>>>
>>> It's well known, and every conversation with dstuft that I've had in the
>>> past was "don't use namespaces".
>>
>> I think this is actually a solved problem. You just need a single line
>> in your __init__.py files:
>>
>> https://bitbucket.org/thomaswaldmann/xstatic-jquery/src/tip/xstatic/__init__.py
>>
>
> The problem is that the setuptools implementation of namespace packages
> breaks in a way that is repeatable but difficult to debug when a common
> OpenStack installation pattern is used. So the fix is “don’t do that” where I
> thought “that” meant the installation pattern and Sean thought it meant “use
> namespace packages”. :-)
Stupid english... be more specific!
Yeh, Doug provides the most concise statement of where we failed on
communication (I take a big chunk of that blame). Hopefully now it's a
lot clearer what's going on, and why it hurts if you do it.
-Sean
--
Sean Dague
http://dague.net
_______________________________________________
OpenStack-dev mailing list
[email protected]
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev