[Import-SIG] New PEP draft: "Simplified Package Layout and Partitioning"

Barry Warsaw barry at python.org
Mon Jul 18 18:32:29 CEST 2011

On Jul 13, 2011, at 07:14 PM, P.J. Eby wrote:

>At 04:27 PM 7/13/2011 -0600, Eric Snow wrote:

>>Should there be a way to indicate that you do not want a directory to
>>be considered for a package (an opt-out)?  Currently I can move the
>>__init__.py out of the way and it gets ignored by import.
>Renaming the directory is the quick solution.  If you have a tool that's
>looking for anything that's a package, then it'll need an exclusion option,
>or you'll have to rename the directory to something the tool will skip.
>(Ideally, tools should skip directories that aren't valid Python

I agree that tools should skip directories that aren't valid identifiers.
Maybe that's good enough, but I half suspect that the opt-out requirement will
come up often in future discussions.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/import-sig/attachments/20110718/f512fdea/attachment.pgp>

More information about the Import-SIG mailing list