Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
2e56c8a2
Commit
2e56c8a2
authored
Aug 13, 2004
by
Neal Norwitz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SF #1005913, Patch to allow building of paper-*/dist.pdf by Jeff Epler
There were subsections without sections, so drop a sub.
parent
ee6511b3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
27 deletions
+27
-27
Doc/dist/dist.tex
Doc/dist/dist.tex
+27
-27
No files found.
Doc/dist/dist.tex
View file @
2e56c8a2
...
@@ -314,7 +314,7 @@ separators:
...
@@ -314,7 +314,7 @@ separators:
\end{verbatim}
\end{verbatim}
\s
ubs
ection
{
Listing whole packages
}
\section
{
Listing whole packages
}
\label
{
listing-packages
}
\label
{
listing-packages
}
The
\option
{
packages
}
option tells the Distutils to process (build,
The
\option
{
packages
}
option tells the Distutils to process (build,
...
@@ -369,7 +369,7 @@ scan your source tree looking for any directory with an
...
@@ -369,7 +369,7 @@ scan your source tree looking for any directory with an
\file
{
\_\_
init
\_\_
.py
}
file.)
\file
{
\_\_
init
\_\_
.py
}
file.)
\s
ubs
ection
{
Listing individual modules
}
\section
{
Listing individual modules
}
\label
{
listing-modules
}
\label
{
listing-modules
}
For a small module distribution, you might prefer to list all modules
For a small module distribution, you might prefer to list all modules
...
@@ -390,7 +390,7 @@ And again, you can override the package/directory correspondence using
...
@@ -390,7 +390,7 @@ And again, you can override the package/directory correspondence using
the
\option
{
package
\_
dir
}
option.
the
\option
{
package
\_
dir
}
option.
\s
ubs
ection
{
Describing extension modules
}
\section
{
Describing extension modules
}
\label
{
describing-extensions
}
\label
{
describing-extensions
}
% XXX read over this section
% XXX read over this section
...
@@ -433,7 +433,7 @@ great deal of flexibility in describing Python extensions, which is
...
@@ -433,7 +433,7 @@ great deal of flexibility in describing Python extensions, which is
explained in the following sections.
explained in the following sections.
\subs
ubs
ection
{
Extension names and packages
}
\subsection
{
Extension names and packages
}
The first argument to the
\class
{
Extension
}
constructor is always the
The first argument to the
\class
{
Extension
}
constructor is always the
name of the extension, including any package names. For example,
name of the extension, including any package names. For example,
...
@@ -469,7 +469,7 @@ will compile \file{foo.c} to the extension \module{pkg.foo}, and
...
@@ -469,7 +469,7 @@ will compile \file{foo.c} to the extension \module{pkg.foo}, and
\file
{
bar.c
}
to
\module
{
pkg.subpkg.bar
}
.
\file
{
bar.c
}
to
\module
{
pkg.subpkg.bar
}
.
\subs
ubs
ection
{
Extension source files
}
\subsection
{
Extension source files
}
The second argument to the
\class
{
Extension
}
constructor is a list of
The second argument to the
\class
{
Extension
}
constructor is a list of
source files. Since the Distutils currently only support C,
\Cpp
, and
source files. Since the Distutils currently only support C,
\Cpp
, and
...
@@ -494,7 +494,7 @@ means Windows message text (\file{.mc}) files and resource definition
...
@@ -494,7 +494,7 @@ means Windows message text (\file{.mc}) files and resource definition
(
\file
{
.res
}
) files and linked into the executable.
(
\file
{
.res
}
) files and linked into the executable.
\subs
ubs
ection
{
Preprocessor options
}
\subsection
{
Preprocessor options
}
Three optional arguments to
\class
{
Extension
}
will help if you need to
Three optional arguments to
\class
{
Extension
}
will help if you need to
specify include directories to search or preprocessor macros to
specify include directories to search or preprocessor macros to
...
@@ -581,7 +581,7 @@ is the equivalent of having this at the top of every C source file:
...
@@ -581,7 +581,7 @@ is the equivalent of having this at the top of every C source file:
\end{verbatim}
\end{verbatim}
\subs
ubs
ection
{
Library options
}
\subsection
{
Library options
}
You can also specify the libraries to link against when building your
You can also specify the libraries to link against when building your
extension, and the directories to search for those libraries. The
extension, and the directories to search for those libraries. The
...
@@ -612,7 +612,7 @@ intend to distribute your code.)
...
@@ -612,7 +612,7 @@ intend to distribute your code.)
\XXX
{
Should mention clib libraries here or somewhere else!
}
\XXX
{
Should mention clib libraries here or somewhere else!
}
\subs
ubs
ection
{
Other options
}
\subsection
{
Other options
}
There are still some other options which can be used to handle special
There are still some other options which can be used to handle special
cases.
cases.
...
@@ -631,7 +631,7 @@ is not needed when building compiled extensions: Distutils
...
@@ -631,7 +631,7 @@ is not needed when building compiled extensions: Distutils
will automatically add
\code
{
initmodule
}
will automatically add
\code
{
initmodule
}
to the list of exported symbols.
to the list of exported symbols.
\s
ubs
ection
{
Installing Scripts
}
\section
{
Installing Scripts
}
So far we have been dealing with pure and non-pure Python modules,
So far we have been dealing with pure and non-pure Python modules,
which are usually not run by themselves but imported by scripts.
which are usually not run by themselves but imported by scripts.
...
@@ -652,7 +652,7 @@ setup(...
...
@@ -652,7 +652,7 @@ setup(...
\end{verbatim}
\end{verbatim}
\s
ubs
ection
{
Installing Package Data
}
\section
{
Installing Package Data
}
Often, additional files need to be installed into a package. These
Often, additional files need to be installed into a package. These
files are often data that's closely related to the package's
files are often data that's closely related to the package's
...
@@ -701,7 +701,7 @@ setup(...,
...
@@ -701,7 +701,7 @@ setup(...,
\versionadded
{
2.4
}
\versionadded
{
2.4
}
\s
ubs
ection
{
Installing Additional Files
}
\section
{
Installing Additional Files
}
The
\option
{
data
\_
files
}
option can be used to specify additional
The
\option
{
data
\_
files
}
option can be used to specify additional
files needed by the module distribution: configuration files, message
files needed by the module distribution: configuration files, message
...
@@ -739,7 +739,7 @@ and the \command{install} command will print a warning in this case.
...
@@ -739,7 +739,7 @@ and the \command{install} command will print a warning in this case.
To install data files directly in the target directory, an empty
To install data files directly in the target directory, an empty
string should be given as the directory.
string should be given as the directory.
\s
ubs
ection
{
Additional meta-data
}
\section
{
Additional meta-data
}
\label
{
meta-data
}
\label
{
meta-data
}
The setup script may include additional meta-data beyond the name and
The setup script may include additional meta-data beyond the name and
...
@@ -846,7 +846,7 @@ if sys.version < '2.2.3':
...
@@ -846,7 +846,7 @@ if sys.version < '2.2.3':
\end{verbatim}
\end{verbatim}
\s
ubs
ection
{
Debugging the setup script
}
\section
{
Debugging the setup script
}
Sometimes things go wrong, and the setup script doesn't do what the
Sometimes things go wrong, and the setup script doesn't do what the
developer wants.
developer wants.
...
@@ -1051,7 +1051,7 @@ to create a gzipped tarball and a zip file. The available formats are:
...
@@ -1051,7 +1051,7 @@ to create a gzipped tarball and a zip file. The available formats are:
\s
ubs
ection
{
Specifying the files to distribute
}
\section
{
Specifying the files to distribute
}
\label
{
manifest
}
\label
{
manifest
}
If you don't supply an explicit list of files (or instructions on how to
If you don't supply an explicit list of files (or instructions on how to
...
@@ -1156,7 +1156,7 @@ of converting them to the standard representation on your platform.
...
@@ -1156,7 +1156,7 @@ of converting them to the standard representation on your platform.
That way, the manifest template is portable across operating systems.
That way, the manifest template is portable across operating systems.
\s
ubs
ection
{
Manifest-related options
}
\section
{
Manifest-related options
}
\label
{
manifest-options
}
\label
{
manifest-options
}
The normal course of operations for the
\command
{
sdist
}
command is as
The normal course of operations for the
\command
{
sdist
}
command is as
...
@@ -1324,14 +1324,14 @@ The following sections give details on the individual \command{bdist\_*}
...
@@ -1324,14 +1324,14 @@ The following sections give details on the individual \command{bdist\_*}
commands.
commands.
\s
ubs
ection
{
Creating dumb built distributions
}
\section
{
Creating dumb built distributions
}
\label
{
creating-dumb
}
\label
{
creating-dumb
}
\XXX
{
Need to document absolute vs. prefix-relative packages here, but
\XXX
{
Need to document absolute vs. prefix-relative packages here, but
first I have to implement it!
}
first I have to implement it!
}
\s
ubs
ection
{
Creating RPM packages
}
\section
{
Creating RPM packages
}
\label
{
creating-rpms
}
\label
{
creating-rpms
}
The RPM format is used by many popular Linux distributions, including
The RPM format is used by many popular Linux distributions, including
...
@@ -1455,7 +1455,7 @@ tree,'' in a temporary directory created by \command{bdist_rpm}.)
...
@@ -1455,7 +1455,7 @@ tree,'' in a temporary directory created by \command{bdist_rpm}.)
% to the \file{.spec} file.)
% to the \file{.spec} file.)
\s
ubs
ection
{
Creating Windows Installers
}
\section
{
Creating Windows Installers
}
\label
{
creating-wininst
}
\label
{
creating-wininst
}
Executable installers are the natural format for binary distributions
Executable installers are the natural format for binary distributions
...
@@ -1508,7 +1508,7 @@ The installer file will be written to the ``distribution directory''
...
@@ -1508,7 +1508,7 @@ The installer file will be written to the ``distribution directory''
--- normally
\file
{
dist/
}
, but customizable with the
--- normally
\file
{
dist/
}
, but customizable with the
\longprogramopt
{
dist-dir
}
option.
\longprogramopt
{
dist-dir
}
option.
\subs
ubs
ection
{
The Postinstallation script
}
\subsection
{
The Postinstallation script
}
\label
{
postinstallation-script
}
\label
{
postinstallation-script
}
Starting with Python 2.3, a postinstallation script can be specified
Starting with Python 2.3, a postinstallation script can be specified
...
@@ -1982,7 +1982,7 @@ or \class{buildcmds.bdist_openpkg.bdist_openpkg}.
...
@@ -1982,7 +1982,7 @@ or \class{buildcmds.bdist_openpkg.bdist_openpkg}.
\label
{
reference
}
\label
{
reference
}
%\s
ubs
ection{Building modules: the \protect\command{build} command family}
%\section{Building modules: the \protect\command{build} command family}
%\label{build-cmds}
%\label{build-cmds}
%\subsubsection{\protect\command{build}}
%\subsubsection{\protect\command{build}}
...
@@ -3510,41 +3510,41 @@ The class constructor takes a single argument \var{dist}, a
...
@@ -3510,41 +3510,41 @@ The class constructor takes a single argument \var{dist}, a
% todo
% todo
\s
ubsubs
ection
{
\module
{
distutils.command.install
}
--- Install a package
}
\section
{
\module
{
distutils.command.install
}
--- Install a package
}
\declaremodule
{
standard
}{
distutils.command.install
}
\declaremodule
{
standard
}{
distutils.command.install
}
\modulesynopsis
{
Install a package
}
\modulesynopsis
{
Install a package
}
% todo
% todo
\s
ubsubs
ection
{
\module
{
distutils.command.install
_
data
}
\section
{
\module
{
distutils.command.install
_
data
}
--- Install data files from a package
}
--- Install data files from a package
}
\declaremodule
[distutils.command.installdata]
{
standard
}{
distutils.command.install
_
data
}
\declaremodule
[distutils.command.installdata]
{
standard
}{
distutils.command.install
_
data
}
\modulesynopsis
{
Install data files from a package
}
\modulesynopsis
{
Install data files from a package
}
% todo
% todo
\s
ubsubs
ection
{
\module
{
distutils.command.install
_
headers
}
\section
{
\module
{
distutils.command.install
_
headers
}
--- Install C/
\Cpp
{}
header files from a package
}
--- Install C/
\Cpp
{}
header files from a package
}
\declaremodule
[distutils.command.installheaders]
{
standard
}{
distutils.command.install
_
headers
}
\declaremodule
[distutils.command.installheaders]
{
standard
}{
distutils.command.install
_
headers
}
\modulesynopsis
{
Install C/
\Cpp
{}
header files from a package
}
\modulesynopsis
{
Install C/
\Cpp
{}
header files from a package
}
% todo
% todo
\s
ubsubs
ection
{
\module
{
distutils.command.install
_
lib
}
\section
{
\module
{
distutils.command.install
_
lib
}
--- Install library files from a package
}
--- Install library files from a package
}
\declaremodule
[distutils.command.installlib]
{
standard
}{
distutils.command.install
_
lib
}
\declaremodule
[distutils.command.installlib]
{
standard
}{
distutils.command.install
_
lib
}
\modulesynopsis
{
Install library files from a package
}
\modulesynopsis
{
Install library files from a package
}
% todo
% todo
\s
ubsubs
ection
{
\module
{
distutils.command.install
_
scripts
}
\section
{
\module
{
distutils.command.install
_
scripts
}
--- Install script files from a package
}
--- Install script files from a package
}
\declaremodule
[distutils.command.installscripts]
{
standard
}{
distutils.command.install
_
scripts
}
\declaremodule
[distutils.command.installscripts]
{
standard
}{
distutils.command.install
_
scripts
}
\modulesynopsis
{
Install script files from a package
}
\modulesynopsis
{
Install script files from a package
}
% todo
% todo
\s
ubsubs
ection
{
\module
{
distutils.command.register
}
\section
{
\module
{
distutils.command.register
}
--- Register a module with the Python Package Index
}
--- Register a module with the Python Package Index
}
\declaremodule
{
standard
}{
distutils.command.register
}
\declaremodule
{
standard
}{
distutils.command.register
}
\modulesynopsis
{
Register a module with the Python Package Index
}
\modulesynopsis
{
Register a module with the Python Package Index
}
...
@@ -3553,7 +3553,7 @@ The \code{register} command registers the package with the Python Package
...
@@ -3553,7 +3553,7 @@ The \code{register} command registers the package with the Python Package
Index. This is described in more detail in
\pep
{
301
}
.
Index. This is described in more detail in
\pep
{
301
}
.
% todo
% todo
\s
ubsubs
ection
{
Creating a new Distutils command
}
\section
{
Creating a new Distutils command
}
This section outlines the steps to create a new Distutils command.
This section outlines the steps to create a new Distutils command.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment