Yes, the https://github.com/pypa/pip/issues/3 definitely sounds like my issue. Seems there is some concern over the nspkg.pth there as well. It seems taht the nspkg.pth is a fine idea to replace the install of the __init__.py, but that it just doesn't work to fully extend the locations in which a namespace can reside.

Either way, there a few other workarounds posted there as well, I will check them out to see if any of them are more palatable than the one I posted here.

Thanks Lele for sending that link!

-Kevin

On Thu, Dec 3, 2015 at 3:19 AM, Lele Gaifax <lele@metapensiero.it> wrote:
Zvezdan Petkovic <zvezdanpetkovic@gmail.com> writes:

> Hi KP,
>
>> On Dec 2, 2015, at 7:00 PM, KP <patter001@gmail.com> wrote:
>>
>> >It looks like you are trying to find a workaround for the problem that perhaps is not a problem at all if you use the standard approach properly.
>>
>> I'm definitely _trying_ to use a standard approach...That is why I am here posting. Put simply this seems like a valid use case:
>>
>> >pip install foo.bar
>> >pip install -e svn+http://<path-to-foo.more>
>>
>> Even if both tools have the namespace_package foo, the "foo.more" will not properly import.
>>
>> How is this going against standard approaches?
>
> I don’t know.
> Without seeing the source code for these packages (which Marius already asked for) everything is hypothetical.
> All I know is that I’m using namespaces successfully for over a decade now and never had the need to work around them.
>
> Show us the code.  We may be able to help better if we can try and reproduce.
> Otherwise, it’s hard.

It seems that KP case is either https://github.com/pypa/pip/issues/3160 or
https://github.com/pypa/pip/issues/3, isn't it? Both come with sample code
that demonstrate the problem.

ciao, lele.
--
nickname: Lele Gaifax | Quando vivrò di quello che ho pensato ieri
real: Emanuele Gaifas | comincerò ad aver paura di chi mi copia.
lele@metapensiero.it  |                 -- Fortunato Depero, 1929.

_______________________________________________
Distutils-SIG maillist  -  Distutils-SIG@python.org
https://mail.python.org/mailman/listinfo/distutils-sig