New submission from Reid Price: https://docs.python.org/2/distutils/examples.html#pure-python-distribution-by-package
Chrome on Linux The last (parenthetical) sentence is not needed. "(Again, the empty string in package_dir stands for the current directory.)" because there is no package_dir option in the example. <------------ Preceding Text ------------> ... If you have sub-packages, they must be explicitly listed in packages, but any entries in package_dir automatically extend to sub-packages. (In other words, the Distutils does not scan your source tree, trying to figure out which directories correspond to Python packages by looking for __init__.py files.) Thus, if the default layout grows a sub-package: <root>/ setup.py foobar/ __init__.py foo.py bar.py subfoo/ __init__.py blah.py then the corresponding setup script would be from distutils.core import setup setup(name='foobar', version='1.0', packages=['foobar', 'foobar.subfoo'], ) (Again, the empty string in package_dir stands for the current directory.) ---------- assignee: docs@python components: Documentation messages: 220295 nosy: Reid.Price, docs@python priority: normal severity: normal status: open title: Unnecessary line in documentation type: enhancement _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue21726> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com