Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1ecc251

Browse files
committed
Changed '\package' to \module'.
1 parent a021aca commit 1ecc251

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

Doc/dist/dist.tex

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ \subsection{Package directories}
254254
mentioned in the \option{packages} list. In order to do this, of
255255
course, there has to be a correspondence between package names and
256256
directories 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
260260
the Distutils will find a file \file{foo/\_\_init\_\_.py} (which might
@@ -267,7 +267,7 @@ \subsection{Package directories}
267267
that's no problem: you just have to supply the \option{package\_dir}
268268
option to tell the Distutils about your convention. For example, say
269269
you 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
271271
are in \file{lib/foo}, and so forth. Then you would put
272272
\begin{verbatim}
273273
package_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
284284
would be written in the setup script as
285285
\begin{verbatim}
286286
package_dir = {'foo': 'lib'}
287287
\end{verbatim}
288288
Note 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
291291
here. In this example, having \code{packages = ['foo', 'foo.bar']}
292292
tells the Distutils to look for \file{lib/\_\_init\_\_.py} and
293293
\file{lib/bar/\_\_init\_\_.py}.
@@ -305,7 +305,7 @@ \subsection{Listing individual modules}
305305
py_modules = ['mod1', 'pkg.mod2']
306306
\end{verbatim}
307307
This 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
309309
package/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}
311311
exists as well. And again, you can override the package/directory

0 commit comments

Comments
 (0)