@@ -1309,9 +1309,11 @@ \chapter{Dynamic Loading}
13091309configured, dynamic loading is trivial to use: when a Python program
13101310executes \code {import spam}, the search for modules tries to find a
13111311file \file {spammodule.o} (\file {spammodule.so} when using shared
1312- libraries) in the module search path, and if one is found, it is
1313- loaded into the executing binary and executed. Once loaded, the
1314- module acts just like a built-in extension module.
1312+ libraries) in the module search path,%
1313+ \indexiii {module}{search}{path}
1314+ and if one is found, it is loaded into the executing binary and
1315+ executed. Once loaded, the module acts just like a built-in extension
1316+ module.
13151317
13161318The advantages of dynamic loading are twofold: the `` core'' Python
13171319binary gets smaller, and users can extend Python with their own
@@ -1411,10 +1413,10 @@ \section{Building a Dynamically Loadable Module}
14111413Note that in all cases you will have to create your own Makefile that
14121414compiles your module file(s). This Makefile will have to pass two
14131415\samp {-I} arguments to the \C {} compiler which will make it find the
1414- Python header files. If the Make variable \var {PYTHONTOP} points to
1415- the toplevel Python directory, your \var {CFLAGS} Make variable should
1416+ Python header files. If the Make variable \makevar {PYTHONTOP} points to
1417+ the toplevel Python directory, your \makevar {CFLAGS} Make variable should
14161418contain the options \samp {-I\$ (PYTHONTOP) -I\$ (PYTHONTOP)/Include}.
1417- (Most header files are in the \file {Include} subdirectory, but the
1419+ (Most header files are in the \file {Include/ } subdirectory, but the
14181420\file {config.h} header lives in the toplevel directory.)
14191421
14201422
@@ -1461,7 +1463,8 @@ \subsection{SGI IRIX 4 Dynamic Loading}
14611463assembler to generate position-independent code.
14621464
14631465You don't need to link the resulting \file {spammodule.o} file; just
1464- copy it into a directory along the Python module search path.
1466+ copy it into a directory along the Python module search path.%
1467+ \indexiii {module}{search}{path}
14651468
14661469The first time your extension is loaded, it takes some extra time and
14671470a few messages may be printed. This creates a file
@@ -1486,7 +1489,8 @@ \subsection{GNU Dynamic Loading}
14861489\label {gnuLinking }
14871490
14881491Just copy \file {spammodule.o} into a directory along the Python module
1489- search path.
1492+ search path.%
1493+ \indexiii {module}{search}{path}
14901494
14911495If your extension modules uses additional system libraries, you must
14921496create a file \file {spammodule.libs} in the same directory as the
@@ -1495,6 +1499,4 @@ \subsection{GNU Dynamic Loading}
14951499files). No \samp {-l} options can be used.
14961500
14971501
1498- \input {ext.ind }
1499-
15001502\end {document }
0 commit comments