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

Skip to content

Commit 211a2eb

Browse files
committed
convert from a howto to a manual
1 parent 5d2c683 commit 211a2eb

1 file changed

Lines changed: 29 additions & 29 deletions

File tree

Doc/dist/dist.tex

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
\documentclass{howto}
1+
\documentclass{manual}
22
\usepackage{distutils}
33

44
% $Id$
@@ -40,7 +40,7 @@
4040
%end{latexonly}
4141

4242

43-
\section{Introduction}
43+
\chapter{An Introduction to Distutils}
4444
\label{intro}
4545

4646
This document covers using the Distutils to distribute your Python
@@ -76,7 +76,7 @@ \section{Concepts \& Terminology}
7676
without having to run a single setup script or compile a line of code.
7777

7878

79-
\subsection{A Simple Example}
79+
\section{A Simple Example}
8080
\label{simple-example}
8181

8282
The setup script is usually quite simple, although since it's written
@@ -178,7 +178,7 @@ \subsection{A Simple Example}
178178
\end{verbatim}
179179

180180

181-
\subsection{General Python terminology}
181+
\section{General Python terminology}
182182
\label{python-terms}
183183

184184
If you're reading this document, you probably have a good idea of what
@@ -217,7 +217,7 @@ \subsection{General Python terminology}
217217
\end{description}
218218

219219

220-
\subsection{Distutils-specific terminology}
220+
\section{Distutils-specific terminology}
221221
\label{distutils-term}
222222

223223
The following terms apply more specifically to the domain of
@@ -245,7 +245,7 @@ \subsection{Distutils-specific terminology}
245245
\end{description}
246246

247247

248-
\section{Writing the Setup Script}
248+
\chapter{Writing the Setup Script}
249249
\label{setup-script}
250250

251251
The setup script is the centre of all activity in building,
@@ -812,7 +812,7 @@ \subsection{Debugging the setup script}
812812
will now print detailed information what it is doing, and prints the
813813
full traceback in case an exception occurs.
814814

815-
\section{Writing the Setup Configuration File}
815+
\chapter{Writing the Setup Configuration File}
816816
\label{setup-config}
817817

818818
Often, it's not possible to write down everything needed to build a
@@ -949,7 +949,7 @@ \section{Writing the Setup Configuration File}
949949
\end{seealso}
950950

951951

952-
\section{Creating a Source Distribution}
952+
\chapter{Creating a Source Distribution}
953953
\label{source-dist}
954954

955955
As shown in section~\ref{simple-example}, you use the
@@ -1142,7 +1142,7 @@ \subsection{Manifest-related options}
11421142
\programopt{-f} for \longprogramopt{force-manifest}.
11431143

11441144

1145-
\section{Creating Built Distributions}
1145+
\chapter{Creating Built Distributions}
11461146
\label{built-dist}
11471147

11481148
A ``built distribution'' is what you're probably used to thinking of
@@ -1531,7 +1531,7 @@ \subsubsection{The Postinstallation script}
15311531
documentation for the \class{IShellLink} interface.
15321532
\end{funcdesc}
15331533

1534-
\section{Registering with the Package Index}
1534+
\chapter{Registering with the Package Index}
15351535
\label{package-index}
15361536

15371537
The Python Package Index (PyPI) holds meta-data describing distributions
@@ -1584,10 +1584,10 @@ \section{Registering with the Package Index}
15841584

15851585

15861586

1587-
\section{Examples}
1587+
\chapter{Examples}
15881588
\label{examples}
15891589

1590-
\subsection{Pure Python distribution (by module)}
1590+
\section{Pure Python distribution (by module)}
15911591
\label{pure-mod}
15921592

15931593
If you're just distributing a couple of modules, especially if they
@@ -1638,7 +1638,7 @@ \subsection{Pure Python distribution (by module)}
16381638
package rather than listing them individually.
16391639

16401640

1641-
\subsection{Pure Python distribution (by package)}
1641+
\section{Pure Python distribution (by package)}
16421642
\label{pure-pkg}
16431643

16441644
If you have more than a couple of modules to distribute, especially if
@@ -1760,7 +1760,7 @@ \subsection{Pure Python distribution (by package)}
17601760
directory.)
17611761

17621762

1763-
\subsection{Single extension module}
1763+
\section{Single extension module}
17641764
\label{single-ext}
17651765

17661766
Extension modules are specified using the \option{ext\_modules} option.
@@ -1793,29 +1793,29 @@ \subsection{Single extension module}
17931793
\end{verbatim}
17941794

17951795

1796-
%\subsection{Multiple extension modules}
1796+
%\section{Multiple extension modules}
17971797
%\label{multiple-ext}
17981798

17991799

1800-
%\subsection{Putting it all together}
1800+
%\section{Putting it all together}
18011801

18021802

1803-
%\section{Extending the Distutils}
1803+
%\chapter{Extending the Distutils}
18041804
%\label{extending}
18051805

18061806

1807-
%\subsection{Extending existing commands}
1807+
%\section{Extending existing commands}
18081808
%\label{extend-existing}
18091809

18101810

1811-
%\subsection{Writing new commands}
1811+
%\section{Writing new commands}
18121812
%\label{new-commands}
18131813

18141814
%\XXX{Would an uninstall command be a good example here?}
18151815

18161816

18171817

1818-
\section{Reference}
1818+
\chapter{Command Reference}
18191819
\label{reference}
18201820

18211821

@@ -1835,7 +1835,7 @@ \section{Reference}
18351835
%\label{build-clib-cmd}
18361836

18371837

1838-
\subsection{Installing modules: the \protect\command{install} command family}
1838+
\section{Installing modules: the \protect\command{install} command family}
18391839
\label{install-cmd}
18401840

18411841
The install command ensures that the build commands have been run and then
@@ -1846,11 +1846,11 @@ \subsection{Installing modules: the \protect\command{install} command family}
18461846
%\subsubsection{\protect\command{install\_lib}}
18471847
%\label{install-lib-cmd}
18481848

1849-
\subsubsection{\protect\command{install\_data}}
1849+
\subsection{\protect\command{install\_data}}
18501850
\label{install-data-cmd}
18511851
This command installs all data files provided with the distribution.
18521852

1853-
\subsubsection{\protect\command{install\_scripts}}
1853+
\subsection{\protect\command{install\_scripts}}
18541854
\label{install-scripts-cmd}
18551855
This command installs all (Python) scripts in the distribution.
18561856

@@ -1859,7 +1859,7 @@ \subsubsection{\protect\command{install\_scripts}}
18591859
%\label{clean-cmd}
18601860

18611861

1862-
\subsection{Creating a source distribution: the
1862+
\section{Creating a source distribution: the
18631863
\protect\command{sdist} command}
18641864
\label{sdist-cmd}
18651865

@@ -1898,18 +1898,18 @@ \subsection{Creating a source distribution: the
18981898
\XXX{Windows and Mac OS support not there yet}
18991899

19001900

1901-
%\subsection{Creating a built distribution: the
1901+
%\section{Creating a built distribution: the
19021902
% \protect\command{bdist} command family}
19031903
%\label{bdist-cmds}
19041904

19051905

1906-
%\subsubsection{\protect\command{bdist}}
1906+
%\subsection{\protect\command{bdist}}
19071907

1908-
%\subsubsection{\protect\command{bdist\_dumb}}
1908+
%\subsection{\protect\command{bdist\_dumb}}
19091909

1910-
%\subsubsection{\protect\command{bdist\_rpm}}
1910+
%\subsection{\protect\command{bdist\_rpm}}
19111911

1912-
%\subsubsection{\protect\command{bdist\_wininst}}
1912+
%\subsection{\protect\command{bdist\_wininst}}
19131913

19141914

19151915
\input{sysconfig}

0 commit comments

Comments
 (0)