[docs] [issue21726] Unnecessary line in documentation
Reid Price
report at bugs.python.org
Wed Jun 11 20:30:15 CEST 2014
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 at python
components: Documentation
messages: 220295
nosy: Reid.Price, docs at python
priority: normal
severity: normal
status: open
title: Unnecessary line in documentation
type: enhancement
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21726>
_______________________________________
More information about the docs
mailing list