On Wed, Oct 20, 2010 at 9:27 AM, Tarek Ziadé <span dir="ltr"><<a href="mailto:ziade.tarek@gmail.com">ziade.tarek@gmail.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

On Wed, Oct 20, 2010 at 4:00 PM, Paul Moore <<a href="mailto:p.f.moore@gmail.com">p.f.moore@gmail.com</a>> wrote:<br>
...<br>
<div class="im">><br>
> If you're saying that Foo *isn't* a package itself, so Foo/__init__.py<br>
> doesn't exist, and bar and baz should be visible unqualified, then I<br>
> begin to see your issue (although my first reaction is to say "don't<br>
> do that, then" :-)). But don't you then just need to search *parents*<br>
> of elements of PYTHONPATH as well for the metadata search? If that's<br>
> an issue then doesn't that mean you've got other problems with how<br>
> people structure their directories? Actually, I suspect my picture<br>
> above is wrong, as I can't honestly see that mandating that the<br>
> dist-info file be a *sibling* (in an arbitrarily cluttered directory)<br>
> of the project directory, is sensible...<br>
<br>
</div>yeah that the main issue: we can't make assumptions on how the source<br>
tree looks in the project, so adding the root path will not work all<br>
the time. Some people even have two separate root packages. Which is<br>
not a good layout, but allowed.. In Zope, I think the convention is to<br>
use a src/ directory so that's another level.<br></blockquote><div><br>Setuptools puts the files in the src/ directory in that case.  More complicated layouts simply aren't supported, and generally no one complains as more complicated layouts are uncommon and a sign someone's head is somewhere very different than where they would be if they were using setup.py develop.<br>

</div></div><br>-- <br>Ian Bicking  |  <a href="http://blog.ianbicking.org">http://blog.ianbicking.org</a><br>