@@ -254,7 +254,7 @@ \subsection{Package directories}
254254mentioned in the \option {packages} list. In order to do this, of
255255course, there has to be a correspondence between package names and
256256directories in the filesystem. The default correspondence is the most
257- obvious one, i.e. package \package {distutils} is found in the directory
257+ obvious one, i.e. package \module {distutils} is found in the directory
258258\file {distutils} relative to the distribution root. Thus, when you say
259259\code {packages = ['foo']} in your setup script, you are promising that
260260the Distutils will find a file \file {foo/\_\_ init\_\_ .py} (which might
@@ -267,7 +267,7 @@ \subsection{Package directories}
267267that's no problem: you just have to supply the \option {package\_ dir}
268268option to tell the Distutils about your convention. For example, say
269269you keep all Python source under \file {lib}, so that modules not in any
270- package are right in \file {lib}, modules in the \package {foo} package
270+ package are right in \file {lib}, modules in the \module {foo} package
271271are in \file {lib/foo}, and so forth. Then you would put
272272\begin {verbatim }
273273package_dir = {'': 'lib'}
@@ -279,15 +279,15 @@ \subsection{Package directories}
279279\code {packages = ['foo']}, you are promising that the file
280280\file {lib/foo/\_\_ init\_\_ .py} exists.
281281
282- Another possible convention is to put the \package {foo} package right in
283- \file {lib}, the \package {foo.bar} package in \file {lib/bar}, etc. This
282+ Another possible convention is to put the \module {foo} package right in
283+ \file {lib}, the \module {foo.bar} package in \file {lib/bar}, etc. This
284284would be written in the setup script as
285285\begin {verbatim }
286286package_dir = {'foo': 'lib'}
287287\end {verbatim }
288288Note that a \code {\var {package}: \var {dir}} entry in the
289289\option {package\_ dir} option implicitly applies to all packages below
290- \var {package}, so the \package {foo.bar} case is automatically handled
290+ \var {package}, so the \module {foo.bar} case is automatically handled
291291here. In this example, having \code {packages = ['foo', 'foo.bar' ]}
292292tells the Distutils to look for \file {lib/\_\_ init\_\_ .py} and
293293\file {lib/bar/\_\_ init\_\_ .py}.
@@ -305,7 +305,7 @@ \subsection{Listing individual modules}
305305py_modules = ['mod1', 'pkg.mod2']
306306\end {verbatim }
307307This describes two modules, one of them in the `` root'' package, the
308- other in the \package {pkg} package. Again, the default
308+ other in the \module {pkg} package. Again, the default
309309package/directory layout implies that these two modules can be found in
310310\file {mod1.py} and \file {pkg/mod2.py}, and that \file {pkg/\_\_ init\_\_ .py}
311311exists as well. And again, you can override the package/directory
0 commit comments