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

Skip to content

Commit 9cf4e2b

Browse files
committed
Change packages to site-packages (so it's clearly not a package itself).
1 parent bbd6152 commit 9cf4e2b

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

Doc/lib/libsite.tex

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ \section{Standard Module \sectcode{site}}
1515
tail part. For the head part, it uses \code{sys.prefix} and
1616
\code{sys.exec_prefix}; empty heads are skipped. For
1717
the tail part, it uses the empty string (on Mac or Windows) or it uses
18-
first \file{lib/python\var{version}/packages} and then
18+
first \file{lib/python\var{version}/site-packages} and then
1919
\file{lib/site-python} (on Unix). For each of the distinct head-tail
2020
combinations, it sees if it refers to an existing directory, and if
2121
so, adds to \code{sys.path}, and also inspected for path configuration
2222
files.
2323
\indexii{site-python}{directory}
24-
\indexii{packages}{directory}
24+
\indexii{site-packages}{directory}
2525

2626
A path configuration file is a file whose name has the form
2727
\file{\var{package}.pth}; its contents are additional items (one
@@ -40,7 +40,7 @@ \section{Standard Module \sectcode{site}}
4040
For example, suppose \code{sys.prefix} and \code{sys.exec_prefix} are
4141
set to \file{/usr/local}. The Python 1.5 library is then installed in
4242
\file{/usr/local/lib/python1.5}. Suppose this has a subdirectory
43-
\file{/usr/local/python1.5/packages} with three subsubdirectories,
43+
\file{/usr/local/python1.5/site-packages} with three subsubdirectories,
4444
\file{foo}, \file{bar} and \file{spam}, and two path configuration
4545
files, \file{foo.pth} and \file{bar.pth}. Assume \file{foo.pth}
4646
contains the following:
@@ -64,8 +64,8 @@ \section{Standard Module \sectcode{site}}
6464
Then the following directories are added to sys.path, in this order:
6565

6666
\bcode\begin{verbatim}
67-
/usr/local/python1.5/packages/bar
68-
/usr/local/python1.5/packages/foo
67+
/usr/local/python1.5/site-packages/bar
68+
/usr/local/python1.5/site-packages/foo
6969
\end{verbatim}\ecode
7070

7171
Note that \file{bletch} is omitted because it doesn't exist; the

Doc/libsite.tex

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ \section{Standard Module \sectcode{site}}
1515
tail part. For the head part, it uses \code{sys.prefix} and
1616
\code{sys.exec_prefix}; empty heads are skipped. For
1717
the tail part, it uses the empty string (on Mac or Windows) or it uses
18-
first \file{lib/python\var{version}/packages} and then
18+
first \file{lib/python\var{version}/site-packages} and then
1919
\file{lib/site-python} (on Unix). For each of the distinct head-tail
2020
combinations, it sees if it refers to an existing directory, and if
2121
so, adds to \code{sys.path}, and also inspected for path configuration
2222
files.
2323
\indexii{site-python}{directory}
24-
\indexii{packages}{directory}
24+
\indexii{site-packages}{directory}
2525

2626
A path configuration file is a file whose name has the form
2727
\file{\var{package}.pth}; its contents are additional items (one
@@ -40,7 +40,7 @@ \section{Standard Module \sectcode{site}}
4040
For example, suppose \code{sys.prefix} and \code{sys.exec_prefix} are
4141
set to \file{/usr/local}. The Python 1.5 library is then installed in
4242
\file{/usr/local/lib/python1.5}. Suppose this has a subdirectory
43-
\file{/usr/local/python1.5/packages} with three subsubdirectories,
43+
\file{/usr/local/python1.5/site-packages} with three subsubdirectories,
4444
\file{foo}, \file{bar} and \file{spam}, and two path configuration
4545
files, \file{foo.pth} and \file{bar.pth}. Assume \file{foo.pth}
4646
contains the following:
@@ -64,8 +64,8 @@ \section{Standard Module \sectcode{site}}
6464
Then the following directories are added to sys.path, in this order:
6565

6666
\bcode\begin{verbatim}
67-
/usr/local/python1.5/packages/bar
68-
/usr/local/python1.5/packages/foo
67+
/usr/local/python1.5/site-packages/bar
68+
/usr/local/python1.5/site-packages/foo
6969
\end{verbatim}\ecode
7070

7171
Note that \file{bletch} is omitted because it doesn't exist; the

0 commit comments

Comments
 (0)