summaryrefslogtreecommitdiffstats
path: root/Doc/api
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2000-09-14 20:24:17 (GMT)
committerFred Drake <fdrake@acm.org>2000-09-14 20:24:17 (GMT)
commitd5d04356170c9613c690964a7f9799126a02cb3d (patch)
tree50eb4b23c0a3a5122579a36015a07e4931836c03 /Doc/api
parent3cdb89d5ec0f923375a7fcf8622da72d2910e98a (diff)
downloadcpython-d5d04356170c9613c690964a7f9799126a02cb3d.zip
cpython-d5d04356170c9613c690964a7f9799126a02cb3d.tar.gz
cpython-d5d04356170c9613c690964a7f9799126a02cb3d.tar.bz2
Use \shortversion in a number of places.
This partially addresses SourceForge bug #114318.
Diffstat (limited to 'Doc/api')
-rw-r--r--Doc/api/api.tex11
1 files changed, 5 insertions, 6 deletions
diff --git a/Doc/api/api.tex b/Doc/api/api.tex
index 9396960..d4d2425 100644
--- a/Doc/api/api.tex
+++ b/Doc/api/api.tex
@@ -102,7 +102,7 @@ the installation directory specified to the installer.
To include the headers, place both directories (if different) on your
compiler's search path for includes. Do \emph{not} place the parent
directories on the search path and then use
-\samp{\#include <python\var{version}/Python.h>}; this will break on
+\samp{\#include <python\shortversion/Python.h>}; this will break on
multi-platform builds since the platform independent headers under
\envvar{prefix} include the platform specific headers from
\envvar{exec_prefix}.
@@ -550,14 +550,13 @@ upon its best guess for the location of the standard Python
interpreter executable, assuming that the Python library is found in a
fixed location relative to the Python interpreter executable. In
particular, it looks for a directory named
-\file{lib/python\var{version}} (replacing \var{version} with the current
-interpreter version) relative to the parent directory where the
-executable named \file{python} is found on the shell command search
-path (the environment variable \envvar{PATH}).
+\file{lib/python\shortversion} relative to the parent directory where
+the executable named \file{python} is found on the shell command
+search path (the environment variable \envvar{PATH}).
For instance, if the Python executable is found in
\file{/usr/local/bin/python}, it will assume that the libraries are in
-\file{/usr/local/lib/python\var{version}}. (In fact, this particular path
+\file{/usr/local/lib/python\shortversion}. (In fact, this particular path
is also the ``fallback'' location, used when no executable file named
\file{python} is found along \envvar{PATH}.) The user can override
this behavior by setting the environment variable \envvar{PYTHONHOME},