Read and respond to this message at: 
https://sourceforge.net/forum/message.php?msg_id=7058832
By: gathmann

Hello!

Like many others, I'm using a feature of setuptools called "namespace packages"
for my library (cf.
http://peak.telecommunity.com/DevCenter/setuptools#namespace-packages). 
Essentially,
I'm chopping up my source tree into a number of small easy-installable 
sub-packages
for improved reusability.

However, I don't seem to be able to configure PyDev in a way to make pylint
happy with this setup (I'm using the latest 1.4.4 release together with pylint
0.18.0 on Eclipse 3.4.1): Code-completion works fine, but for some reason pylint
fails to pick up on any but the first sub-package.

A good example for this problem are the various logilab packages which also
use namespace packages. So, on my system, from the following two import lines

from logilab.common import *
from logilab.astng import *

the first one is found fine by pylint, but the second one is not (code 
completion
works fine for both).

I suspect this happens because the various subpackages are added to the 
PYTHONPATH
one at a time in the interpreter configuration dialog - and only the first one
is picked up when a name is resolved. Name resolution in the runtime 
environment,
however, works by appending the various subpackage paths to the list of __path__
s to be scanned for package modules. Is there any way I could configure the
PyDev interpreter that this would work?

Many thanks in advance for any suggestions,

Oliver

-- 
--------------------------------------------------------------------
F. Oliver Gathmann, Ph.D.
Director IT Unit
Cenix BioScience GmbH
Tatzberg 47                       phone: +49 (351) 4173-136
D-01307 Dresden, Germany          fax:   +49 (351) 4173-109

fingerprint: 8E0E 9A64 A07E 0D1A D302  34C2 421A AE9F 4E13 A009
public key: http://www.cenix-bioscience.com/public_keys/gathmann.gpg
--------------------------------------------------------------------



______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit: 
https://sourceforge.net/forum/unmonitor.php?forum_id=293649

------------------------------------------------------------------------------
_______________________________________________
Pydev-users mailing list
Pydev-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pydev-users

Reply via email to