diff options
author | Wyatt Lee Baldwin <self@wyattbaldwin.com> | 2014-02-12 00:52:26 -0800 |
---|---|---|
committer | Wyatt Lee Baldwin <self@wyattbaldwin.com> | 2014-02-12 00:52:26 -0800 |
commit | f0e9aa7a337530e07b94c503e4258b6daf422e06 (patch) | |
tree | 62661ba129e74d028df37f9dbb1ba1aa4e96572c /setup.py | |
parent | c6deb3393c545c20ce22c094975766e286a831d9 (diff) | |
download | external_python_setuptools-f0e9aa7a337530e07b94c503e4258b6daf422e06.tar.gz external_python_setuptools-f0e9aa7a337530e07b94c503e4258b6daf422e06.tar.bz2 external_python_setuptools-f0e9aa7a337530e07b94c503e4258b6daf422e06.zip |
Add support for PEP 420 namespace packages to find_packages()
On Python 3.3+, `find_packages()` now considers any subdirectory of the
start directory that's not a regular package (i.e., that doesn't have an
`__init__.py`) to be a namespace package. Because this will often
include non-package directories, a new `include` argument has been added
to `find_packages()`.
`include` can make it easier to narrow which directories are considered
packages instead of having to specify numerous excludes. In
particular, it's an easy way to keep top-level, non-source directories
from being considered packages.
The other way this supports PEP 420 is by making sure `__pycache__`
directories are never added to the list of packages.
Refs issue #97
Diffstat (limited to 'setup.py')
0 files changed, 0 insertions, 0 deletions