mirror of
https://github.com/python/cpython.git
synced 2025-11-11 22:55:08 +00:00
Update Python version numbers from 1.6 to 2.0 where appropriate.
Make some references between the distutils documents hyperlinks using the \citetitle markup.
This commit is contained in:
parent
0e8c518a62
commit
01df453f16
2 changed files with 19 additions and 17 deletions
13
Doc/dist/dist.tex
vendored
13
Doc/dist/dist.tex
vendored
|
|
@ -21,20 +21,21 @@ In the past, Python module developers have not had much infrastructure
|
||||||
support for distributing modules, nor have Python users had much support
|
support for distributing modules, nor have Python users had much support
|
||||||
for installing and maintaining third-party modules. With the
|
for installing and maintaining third-party modules. With the
|
||||||
introduction of the Python Distribution Utilities (Distutils for short)
|
introduction of the Python Distribution Utilities (Distutils for short)
|
||||||
in Python 1.6, this situation should start to improve.
|
in Python 2.0, this situation should start to improve.
|
||||||
|
|
||||||
This document only covers using the Distutils to distribute your Python
|
This document only covers using the Distutils to distribute your Python
|
||||||
modules. Using the Distutils does not tie you to Python 1.6, though:
|
modules. Using the Distutils does not tie you to Python 2.0, though:
|
||||||
the Distutils work just fine with Python 1.5, and it is reasonable (and
|
the Distutils work just fine with Python 1.5, and it is reasonable (and
|
||||||
expected to become commonplace) to expect users of Python 1.5 to
|
expected to become commonplace) to expect users of Python 1.5 to
|
||||||
download and install the Distutils separately before they can install
|
download and install the Distutils separately before they can install
|
||||||
your modules. Python 1.6 users, of course, won't have to add anything
|
your modules. Python 2.0 users, of course, won't have to add anything
|
||||||
to their Python installation in order to use the Distutils to install
|
to their Python installation in order to use the Distutils to install
|
||||||
third-party modules.
|
third-party modules.
|
||||||
|
|
||||||
This document concentrates on the role of developer/distributor: if
|
This document concentrates on the role of developer/distributor: if
|
||||||
you're looking for information on installing Python modules, you should
|
you're looking for information on installing Python modules, you
|
||||||
refer to the ``Installing Python Modules'' manual.
|
should refer to the \citetitle[../inst/inst.html]{Installing Python
|
||||||
|
Modules} manual.
|
||||||
|
|
||||||
|
|
||||||
\section{Concepts \& Terminology}
|
\section{Concepts \& Terminology}
|
||||||
|
|
@ -223,7 +224,7 @@ supplied as keyword arguments to \function{setup()}.
|
||||||
|
|
||||||
Here's a slightly more involved example, which we'll follow for the next
|
Here's a slightly more involved example, which we'll follow for the next
|
||||||
couple of sections: the Distutils' own setup script. (Keep in mind that
|
couple of sections: the Distutils' own setup script. (Keep in mind that
|
||||||
although the Distutils are included with Python 1.6, they also have an
|
although the Distutils are included with Python 2.0, they also have an
|
||||||
independent existence so that Python 1.5 users can use them to install
|
independent existence so that Python 1.5 users can use them to install
|
||||||
other module distributions. The Distutils' own setup script is used to
|
other module distributions. The Distutils' own setup script is used to
|
||||||
install the package into Python 1.5.)
|
install the package into Python 1.5.)
|
||||||
|
|
|
||||||
|
|
@ -48,7 +48,7 @@ written in Python.
|
||||||
|
|
||||||
In the past, there has been little support for adding third-party
|
In the past, there has been little support for adding third-party
|
||||||
modules to an existing Python installation. With the introduction of
|
modules to an existing Python installation. With the introduction of
|
||||||
the Python Distribution Utilities (Distutils for short) in Python 1.6,
|
the Python Distribution Utilities (Distutils for short) in Python 2.0,
|
||||||
this is starting to change. Not everything will change overnight,
|
this is starting to change. Not everything will change overnight,
|
||||||
though, so while this document concentrates on installing module
|
though, so while this document concentrates on installing module
|
||||||
distributions that use the Distutils, we will also spend some time
|
distributions that use the Distutils, we will also spend some time
|
||||||
|
|
@ -62,7 +62,7 @@ don't need to know Python to read this document; there will be some
|
||||||
brief forays into using Python's interactive mode to explore your
|
brief forays into using Python's interactive mode to explore your
|
||||||
installation, but that's it. If you're looking for information on how
|
installation, but that's it. If you're looking for information on how
|
||||||
to distribute your own Python modules so that others may use them, see
|
to distribute your own Python modules so that others may use them, see
|
||||||
the ``Distributing Python Modules'' manual.
|
the \citetitle[../dist/dist.html]{Distributing Python Modules} manual.
|
||||||
|
|
||||||
|
|
||||||
\subsection{Best case: trivial installation}
|
\subsection{Best case: trivial installation}
|
||||||
|
|
@ -274,12 +274,12 @@ being installed is pure Python or contains extensions (``non-pure''):
|
||||||
\begin{tableiv}{l|l|l|c}{textrm}%
|
\begin{tableiv}{l|l|l|c}{textrm}%
|
||||||
{Platform}{Standard installation location}{Default value}{Notes}
|
{Platform}{Standard installation location}{Default value}{Notes}
|
||||||
\lineiv{Unix (pure)}
|
\lineiv{Unix (pure)}
|
||||||
{\filenq{\filevar{prefix}/lib/python1.6/site-packages}}
|
{\filenq{\filevar{prefix}/lib/python2.0/site-packages}}
|
||||||
{\filenq{/usr/local/lib/python1.6/site-packages}}
|
{\filenq{/usr/local/lib/python2.0/site-packages}}
|
||||||
{(1)}
|
{(1)}
|
||||||
\lineiv{Unix (non-pure)}
|
\lineiv{Unix (non-pure)}
|
||||||
{\filenq{\filevar{exec-prefix}/lib/python1.6/site-packages}}
|
{\filenq{\filevar{exec-prefix}/lib/python2.0/site-packages}}
|
||||||
{\filenq{/usr/local/lib/python1.6/site-packages}}
|
{\filenq{/usr/local/lib/python2.0/site-packages}}
|
||||||
{(1)}
|
{(1)}
|
||||||
\lineiv{Windows}
|
\lineiv{Windows}
|
||||||
{\filenq{\filevar{prefix}}}
|
{\filenq{\filevar{prefix}}}
|
||||||
|
|
@ -314,11 +314,12 @@ often the same under Unix. You can find out what your Python
|
||||||
installation uses for \filevar{prefix} and \filevar{exec-prefix} by
|
installation uses for \filevar{prefix} and \filevar{exec-prefix} by
|
||||||
running Python in interactive mode and typing a few simple commands.
|
running Python in interactive mode and typing a few simple commands.
|
||||||
Under Unix, just type \code{python} at the shell prompt; under Windows,
|
Under Unix, just type \code{python} at the shell prompt; under Windows,
|
||||||
run ``Python 1.6 (interpreter)'' \XXX{right?}; under Mac~OS, \XXX{???}.
|
run ``Python 2.0 (interpreter)'' \XXX{right?}; under Mac~OS, \XXX{???}.
|
||||||
Once the interpreter is started, you type Python code at the \code{>>>}
|
Once the interpreter is started, you type Python code at the
|
||||||
prompt. For example, on my Linux system, I type the three Python
|
\samp{>>> } prompt. For example, on my Linux system, I type the three
|
||||||
statements shown below, and get the output as shown, to find out my
|
Python statements shown below, and get the output as shown, to find
|
||||||
\filevar{prefix} and \filevar{exec-prefix}:
|
out my \filevar{prefix} and \filevar{exec-prefix}:
|
||||||
|
|
||||||
\begin{verbatim}
|
\begin{verbatim}
|
||||||
Python 1.5.2 (#1, Apr 18 1999, 16:03:16) [GCC pgcc-2.91.60 19981201 (egcs-1.1.1 on linux2
|
Python 1.5.2 (#1, Apr 18 1999, 16:03:16) [GCC pgcc-2.91.60 19981201 (egcs-1.1.1 on linux2
|
||||||
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
|
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue