<div class="gmail_quote">On Fri, May 4, 2012 at 11:13 AM, Eric V. Smith <span dir="ltr">&lt;<a href="mailto:eric@trueblade.com" target="_blank">eric@trueblade.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
3. The zipimport finder currently looks for &quot;path/&quot; to detect if a<br>
&#39;directory&#39; exists and could be a namespace portion. However, this is a<br>
valid zip file:<br>
Archive:  namespace_pkgs/missing_directory.zip<br>
  Length      Date    Time    Name<br>
---------  ---------- -----   ----<br>
        0  2012-05-04 04:45   bar/<br>
       35  2012-05-04 04:45   bar/two.py<br>
       26  2012-05-04 04:45   foo/one.py<br>
---------                     -------<br>
       61                     3 files<br>
The current code will treat &quot;bar&quot; as a possible portion, but not &quot;foo&quot;.<br>
We discussed a number of ways to address this, but I&#39;m unconvinced<br>
they&#39;re worth the hassle and runtime expense. But in any event, it&#39;s an<br>
issue for another day and doesn&#39;t affect the PEP&#39;s acceptance one way or<br>
the other.<br></blockquote><div><br>FYI, the zip files produced by distutils do not include the empty directory.  Actually, I&#39;m not sure when/where I&#39;ve ever seen an empty directory listed in a zipfile.<br><br>IMO, the no-explicit-directory case should be handled, if for no other reason than that it shouldn&#39;t randomly break depending on which archiving tool you used to create the zipfile with. <br>
</div><br></div>