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

Skip to content

Commit 2de75ec

Browse files
committed
Don't assume that \version expands to the 3-character major.minor number; it
is the full release version name ("1.5.1beta1", for instance).
1 parent 9da3881 commit 2de75ec

6 files changed

Lines changed: 14 additions & 10 deletions

File tree

Doc/api.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -509,14 +509,14 @@ \section{Embedding Python}
509509
location of the standard Python interpreter executable, assuming that
510510
the Python library is found in a fixed location relative to the Python
511511
interpreter executable. In particular, it looks for a directory named
512-
\file{lib/python\version} (replacing \file{\version} with the current
512+
\file{lib/python1.5} (replacing \file{1.5} with the current
513513
interpreter version) relative to the parent directory where the
514514
executable named \file{python} is found on the shell command search
515515
path (the environment variable \envvar{PATH}).
516516

517517
For instance, if the Python executable is found in
518518
\file{/usr/local/bin/python}, it will assume that the libraries are in
519-
\file{/usr/local/lib/python\version}. (In fact, this particular path
519+
\file{/usr/local/lib/python1.5}. (In fact, this particular path
520520
is also the ``fallback'' location, used when no executable file named
521521
\file{python} is found along \envvar{PATH}.) The user can override
522522
this behavior by setting the environment variable \envvar{PYTHONHOME},

Doc/api/api.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -509,14 +509,14 @@ \section{Embedding Python}
509509
location of the standard Python interpreter executable, assuming that
510510
the Python library is found in a fixed location relative to the Python
511511
interpreter executable. In particular, it looks for a directory named
512-
\file{lib/python\version} (replacing \file{\version} with the current
512+
\file{lib/python1.5} (replacing \file{1.5} with the current
513513
interpreter version) relative to the parent directory where the
514514
executable named \file{python} is found on the shell command search
515515
path (the environment variable \envvar{PATH}).
516516

517517
For instance, if the Python executable is found in
518518
\file{/usr/local/bin/python}, it will assume that the libraries are in
519-
\file{/usr/local/lib/python\version}. (In fact, this particular path
519+
\file{/usr/local/lib/python1.5}. (In fact, this particular path
520520
is also the ``fallback'' location, used when no executable file named
521521
\file{python} is found along \envvar{PATH}.) The user can override
522522
this behavior by setting the environment variable \envvar{PYTHONHOME},

Doc/lib/libglob.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ \section{Standard Module \module{glob}}
1515
Returns a possibly-empty list of path names that match \var{pathname},
1616
which must be a string containing a path specification.
1717
\var{pathname} can be either absolute (like
18-
\file{/usr/src/Python\version/Makefile}) or relative (like
18+
\file{/usr/src/Python-1.5/Makefile}) or relative (like
1919
\file{../../Tools/*.gif}), and can contain shell-style wildcards.
2020
\end{funcdesc}
2121

Doc/lib/libsite.tex

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,10 @@ \section{Standard Module \module{site}}
3636

3737
For example, suppose \code{sys.prefix} and \code{sys.exec_prefix} are
3838
set to \file{/usr/local}. The Python \version\ library is then
39-
installed in \file{/usr/local/lib/python\version}. Suppose this has a
40-
subdirectory \file{/usr/local/lib/python\version/site-packages} with three
39+
installed in \file{/usr/local/lib/python1.5} (note that only the first
40+
three characters of \code{sys.version} are used to form the path
41+
name). Suppose this has a subdirectory
42+
\file{/usr/local/lib/python1.5/site-packages} with three
4143
subsubdirectories, \file{foo}, \file{bar} and \file{spam}, and two
4244
path configuration files, \file{foo.pth} and \file{bar.pth}. Assume
4345
\file{foo.pth} contains the following:

Doc/libglob.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ \section{Standard Module \module{glob}}
1515
Returns a possibly-empty list of path names that match \var{pathname},
1616
which must be a string containing a path specification.
1717
\var{pathname} can be either absolute (like
18-
\file{/usr/src/Python\version/Makefile}) or relative (like
18+
\file{/usr/src/Python-1.5/Makefile}) or relative (like
1919
\file{../../Tools/*.gif}), and can contain shell-style wildcards.
2020
\end{funcdesc}
2121

Doc/libsite.tex

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,10 @@ \section{Standard Module \module{site}}
3636

3737
For example, suppose \code{sys.prefix} and \code{sys.exec_prefix} are
3838
set to \file{/usr/local}. The Python \version\ library is then
39-
installed in \file{/usr/local/lib/python\version}. Suppose this has a
40-
subdirectory \file{/usr/local/lib/python\version/site-packages} with three
39+
installed in \file{/usr/local/lib/python1.5} (note that only the first
40+
three characters of \code{sys.version} are used to form the path
41+
name). Suppose this has a subdirectory
42+
\file{/usr/local/lib/python1.5/site-packages} with three
4143
subsubdirectories, \file{foo}, \file{bar} and \file{spam}, and two
4244
path configuration files, \file{foo.pth} and \file{bar.pth}. Assume
4345
\file{foo.pth} contains the following:

0 commit comments

Comments
 (0)