@@ -1417,7 +1417,7 @@ \subsection{Creating Windows Installers}
14171417If you have a pure module distribution (only containing pure Python
14181418modules and packages), the resulting installer will be version
14191419independent and have a name like \file {foo-1.0.win32.exe}. These
1420- installers can even be created on \UNIX {} or MacOS platforms.
1420+ installers can even be created on \UNIX {} or Mac OS platforms.
14211421
14221422If you have a non-pure distribution, the extensions can only be
14231423created on a Windows platform, and will be Python version dependent.
@@ -1454,13 +1454,13 @@ \subsubsection{The Postinstallation script}
14541454in the scripts argument to the setup function.
14551455
14561456This script will be run at installation time on the target system
1457- after all the files have been copied, with argv[1] set to '-install' ,
1458- and again at uninstallation time before the files are removed with argv[1]
1459- set to ' -remove' .
1457+ after all the files have been copied, with \code { argv[1]} set to
1458+ \programopt {-install}, and again at uninstallation time before the
1459+ files are removed with \code {argv[1]} set to \programopt { -remove} .
14601460
14611461The installation script runs embedded in the windows installer, every
1462- output (sys.stdout, sys.stderr) is redirected into a buffer and will
1463- be displayed in the GUI after the script has finished.
1462+ output (\code { sys.stdout}, \code { sys.stderr} ) is redirected into a
1463+ buffer and will be displayed in the GUI after the script has finished.
14641464
14651465Some functions especially useful in this context are available in the
14661466installation script.
@@ -1502,11 +1502,11 @@ \subsubsection{The Postinstallation script}
15021502"CSIDL_FONTS"
15031503\end {verbatim }
15041504
1505- If the folder cannot be retrieved, OSError is raised.
1505+ If the folder cannot be retrieved, \exception { OSError} is raised.
15061506
15071507Which folders are available depends on the exact Windows version, and probably
15081508also the configuration. For details refer to Microsoft's documentation of the
1509- \code {SHGetSpecialFolderPath} function.
1509+ \cfunction {SHGetSpecialFolderPath() } function.
15101510
15111511\begin {verbatim }
15121512create_shortcut(target, description, filename[, arguments[,
@@ -1522,7 +1522,7 @@ \subsubsection{The Postinstallation script}
15221522\var {iconpath} is the file containing the icon for the shortcut,
15231523and \var {iconindex} is the index of the icon in the file
15241524\var {iconpath}. Again, for details consult the Microsoft
1525- documentation for the \code {IShellLink} interface.
1525+ documentation for the \class {IShellLink} interface.
15261526
15271527\section {Registering with the Package Index }
15281528\label {package-index }
0 commit comments