[issue14549] Recursive inclusion of packages
Éric Araujo
report at bugs.python.org
Wed Apr 11 19:33:10 CEST 2012
Éric Araujo <merwok at netwok.org> added the comment:
IMO the best behavior would be to always recurse and have an option to exclude specific submodules. When the Django devs want to package their code, they think about a Python package named django, docs and scripts, not about django, django.views, django.http, etc. I proposed glob syntax or a new key to be conservative, but now I’ll add a third proposal:
packages = foo
packages-exclude = foo.spam
For a package foo with subpackages ham and spam, this would get foo and foo.ham.
Note that this was discussed on the fellowship ML two years ago but I don’t have the time to re-read the thread now.
(Why is it not named exclude-packages? 1) you can exclude single-file modules too with this option 2) it makes it clear that it’s a “sub-option” of packages)
About extension modules sources: good idea, but it should be its own feature request.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14549>
_______________________________________
More information about the Python-bugs-list
mailing list