- ![]()  |
- ![]()  |
- ![]()  |
-
+ |
Python Documentation |
- ![]()  |
- ![]()  |
- ![]()  |
Only in main/Apps/ActivePython-2.0/src/Core/Doc/html: inst
Only in main/Apps/ActivePython-2.0/src/Core/Doc/html: inst.aux
Only in main/Apps/ActivePython-2.0/src/Core/Doc/html: inst.dvi
Only in main/Apps/ActivePython-2.0/src/Core/Doc/html: inst.how
Only in main/Apps/ActivePython-2.0/src/Core/Doc/html: inst.idx
Only in main/Apps/ActivePython-2.0/src/Core/Doc/html: inst.ind
Only in main/Apps/ActivePython-2.0/src/Core/Doc/html: inst.l2h
Only in main/Apps/ActivePython-2.0/src/Core/Doc/html: inst.log
Only in main/Apps/ActivePython-2.0/src/Core/Doc/html: inst.toc
Only in main/Apps/ActivePython-2.0/src/Core/Doc/html: lib.aux
Only in main/Apps/ActivePython-2.0/src/Core/Doc/html: lib.dvi
Only in main/Apps/ActivePython-2.0/src/Core/Doc/html: lib.how
Only in main/Apps/ActivePython-2.0/src/Core/Doc/html: lib.idx
Only in main/Apps/ActivePython-2.0/src/Core/Doc/html: lib.ind
Only in main/Apps/ActivePython-2.0/src/Core/Doc/html: lib.l2h
Only in main/Apps/ActivePython-2.0/src/Core/Doc/html: lib.log
Only in main/Apps/ActivePython-2.0/src/Core/Doc/html: lib.toc
Only in main/Apps/ActivePython-2.0/src/Core/Doc/html: lib2.syn
Only in main/Apps/ActivePython-2.0/src/Core/Doc/html: lib3.syn
Only in main/Apps/ActivePython-2.0/src/Core/Doc/html: mac
Only in main/Apps/ActivePython-2.0/src/Core/Doc/html: mac.aux
Only in main/Apps/ActivePython-2.0/src/Core/Doc/html: mac.dvi
Only in main/Apps/ActivePython-2.0/src/Core/Doc/html: mac.how
Only in main/Apps/ActivePython-2.0/src/Core/Doc/html: mac.idx
Only in main/Apps/ActivePython-2.0/src/Core/Doc/html: mac.ind
Only in main/Apps/ActivePython-2.0/src/Core/Doc/html: mac.l2h
Only in main/Apps/ActivePython-2.0/src/Core/Doc/html: mac.log
Only in main/Apps/ActivePython-2.0/src/Core/Doc/html: mac.pla
Only in main/Apps/ActivePython-2.0/src/Core/Doc/html: mac.toc
Only in main/Apps/ActivePython-2.0/src/Core/Doc/html: mac2.syn
Only in main/Apps/ActivePython-2.0/src/Core/Doc/html: mac3.syn
Only in main/Apps/ActivePython-2.0/src/Core/Doc/html: mac4.syn
Only in main/Apps/ActivePython-2.0/src/Core/Doc/html: modapi.ind
Only in main/Apps/ActivePython-2.0/src/Core/Doc/html: moddist.ind
Only in main/Apps/ActivePython-2.0/src/Core/Doc/html: moddoc.ind
Only in main/Apps/ActivePython-2.0/src/Core/Doc/html: modext.ind
Only in main/Apps/ActivePython-2.0/src/Core/Doc/html: modinst.ind
Only in main/Apps/ActivePython-2.0/src/Core/Doc/html: modlib.idx
Only in main/Apps/ActivePython-2.0/src/Core/Doc/html: modlib.ind
Only in main/Apps/ActivePython-2.0/src/Core/Doc/html: modmac.idx
Only in main/Apps/ActivePython-2.0/src/Core/Doc/html: modmac.ind
Only in main/Apps/ActivePython-2.0/src/Core/Doc/html: modref.ind
Only in main/Apps/ActivePython-2.0/src/Core/Doc/html: modtut.ind
Only in main/Apps/ActivePython-2.0/src/Core/Doc/html: ref
Only in main/Apps/ActivePython-2.0/src/Core/Doc/html: ref.aux
Only in main/Apps/ActivePython-2.0/src/Core/Doc/html: ref.dvi
Only in main/Apps/ActivePython-2.0/src/Core/Doc/html: ref.how
Only in main/Apps/ActivePython-2.0/src/Core/Doc/html: ref.idx
Only in main/Apps/ActivePython-2.0/src/Core/Doc/html: ref.ind
Only in main/Apps/ActivePython-2.0/src/Core/Doc/html: ref.l2h
Only in main/Apps/ActivePython-2.0/src/Core/Doc/html: ref.log
Only in main/Apps/ActivePython-2.0/src/Core/Doc/html: ref.toc
diff -ru main/contrib/python-2.0/dist/src/Doc/html/stdabout.dat main/Apps/ActivePython-2.0/src/Core/Doc/html/stdabout.dat
--- main/contrib/python-2.0/dist/src/Doc/html/stdabout.dat Mon Mar 12 16:11:28 2001
+++ main/Apps/ActivePython-2.0/src/Core/Doc/html/stdabout.dat Mon Mar 12 16:10:18 2001
@@ -27,6 +27,12 @@
Comments and Questions
+
Comments on the ActivePython distribution should be directed to
+ ActivePython@ActiveState.com.
+ For the latest news on ActivePython, visit the ActivePython homepage at
+ www.ActiveState.com/Products/ActivePython.
+
+
General comments and questions regarding this document should
be sent by email to python-docs@python.org. If you find specific errors in
diff -ru main/contrib/python-2.0/dist/src/Doc/html/style.css main/Apps/ActivePython-2.0/src/Core/Doc/html/style.css
--- main/contrib/python-2.0/dist/src/Doc/html/style.css Mon Mar 12 16:11:28 2001
+++ main/Apps/ActivePython-2.0/src/Core/Doc/html/style.css Mon Mar 12 16:10:18 2001
@@ -3,12 +3,9 @@
* with the "empty" declarations removed.
*/
-/* Century Schoolbook font is very similar to Computer Modern Math: cmmi */
-.math { font-family: "Century Schoolbook", serif; }
-.math i { font-family: "Century Schoolbook", serif;
- font-weight: bold }
-.boldmath { font-family: "Century Schoolbook", serif;
- font-weight: bold }
+.math { font-family: serif; }
+.math i { font-family: serif; font-weight: bold }
+.boldmath { font-family: serif; font-weight: bold }
/* Implement both fixed-size and relative sizes: */
small.xtiny { font-size : xx-small }
@@ -28,56 +25,33 @@
* Netscape on Solaris otherwise doesn't get it right; they all end up
* the normal text size.
*/
+a:link { color:#B82619; }
+a:visited { color:#C2B266; }
+a:active { color: #000000; }
+body { font-family: verdana, arial, helvetica, sans-serif; font-size: small; }
+h1, h2, h3, h4, h5, h6 { font-family: verdana, arial, helvetica, sans-serif; font-weight: bold; }
+h1 { font-size: 180% }
+h2 { font-size: 150% }
+h3, h4 { font-size: 120% }
+code, tt { font-family: monospace }
+var { font-family: serif; font-style: italic; font-weight: normal }
-body { color: #000000;
- background-color: #ffffff; }
+.navigation { font-family: verdana, arial, helvetica, sans-serif; font-size: 110% }
-a:active { color: #ff0000; }
-a:visited { color: #551a8b; }
-a:link { color: #0000bb; }
-
-h1, h2, h3, h4, h5, h6 { font-family: avantgarde, sans-serif;
- font-weight: bold }
-h1 { font-size: 180% }
-h2 { font-size: 150% }
-h3, h4 { font-size: 120% }
-code, tt { font-family: monospace }
-var { font-family: serif;
- font-style: italic;
- font-weight: normal }
-
-.navigation td { background-color: #99ccff;
- font-weight: bold;
- font-family: avantgarde, sans-serif;
- font-size: 110% }
-
-.release-info { font-style: italic; }
-
-.titlegraphic { vertical-align: top; }
+.title { font-family: verdana, arial, helvetica, sans-serif; font-size: 110% }
.verbatim { color: #00008b }
-.email { font-family: avantgarde, sans-serif }
-.mimetype { font-family: avantgarde, sans-serif }
-.newsgroup { font-family: avantgarde, sans-serif }
-.url { font-family: avantgarde, sans-serif }
-.file { font-family: avantgarde, sans-serif }
-
-.tableheader { background-color: #99ccff;
- font-family: avantgarde, sans-serif; }
+.email { font-family: verdana, arial, helvetica, sans-serif }
+.mimetype { font-family: verdana, arial, helvetica, sans-serif }
+.newsgroup { font-family: verdana, arial, helvetica, sans-serif }
+.url { font-family: verdana, arial, helvetica, sans-serif }
+.file { font-family: verdana, arial, helvetica, sans-serif }
.refcount-info { font-style: italic }
-.refcount-info .value { font-weight: bold;
- color: #006600 }
+.refcount-info .value { font-weight: bold; color: #006600 }
-/*
- * Some decoration for the "See also:" blocks, in part inspired by some of
- * the styling on Lars Marius Garshol's XSA pages.
- * (The blue in the navigation bars is #99CCFF.)
- */
-.seealso { background-color: #fffaf0;
- border: thin solid black;
- padding: 4pt }
+.seealso { background-color: #EAE2BB; border: thin solid black; padding: 4pt }
.seealso .heading { font-size: 110% }
Only in main/Apps/ActivePython-2.0/src/Core/Doc/html: tut
Only in main/Apps/ActivePython-2.0/src/Core/Doc/html: tut.aux
Only in main/Apps/ActivePython-2.0/src/Core/Doc/html: tut.dvi
Only in main/Apps/ActivePython-2.0/src/Core/Doc/html: tut.how
Only in main/Apps/ActivePython-2.0/src/Core/Doc/html: tut.ind
Only in main/Apps/ActivePython-2.0/src/Core/Doc/html: tut.l2h
Only in main/Apps/ActivePython-2.0/src/Core/Doc/html: tut.log
Only in main/Apps/ActivePython-2.0/src/Core/Doc/html: tut.toc
Only in main/contrib/python-2.0/dist/src/Doc: icons
diff -ru main/contrib/python-2.0/dist/src/Doc/info/Makefile main/Apps/ActivePython-2.0/src/Core/Doc/info/Makefile
--- main/contrib/python-2.0/dist/src/Doc/info/Makefile Mon Mar 12 16:11:28 2001
+++ main/Apps/ActivePython-2.0/src/Core/Doc/info/Makefile Mon Mar 12 16:10:18 2001
@@ -1,7 +1,9 @@
# Generate the Python "info" documentation.
+PAPER=letter
TOPDIR=..
TOOLSDIR=$(TOPDIR)/tools
+PAPERDIR=$(TOPDIR)/paper-$(PAPER)
HTMLDIR=$(TOPDIR)/html
MKINFO=$(TOOLSDIR)/mkinfo
@@ -9,8 +11,7 @@
$(TOOLSDIR)/fixinfo.el
all: python-api.info python-ext.info python-lib.info \
- python-ref.info python-tut.info \
- python-dist.info python-inst.info
+ python-ref.info python-tut.info
python-api.info: $(HTMLDIR)/api/api.html $(SCRIPTS)
@@ -32,11 +33,6 @@
python-tut.info: $(HTMLDIR)/tut/tut.html $(SCRIPTS)
$(MKINFO) $<
-python-dist.info: $(HTMLDIR)/dist/dist.html $(SCRIPTS)
- $(MKINFO) $<
-
-python-inst.info: $(HTMLDIR)/inst/inst.html $(SCRIPTS)
- $(MKINFO) $<
clean:
rm -f *.texi~ *.texi
@@ -45,29 +41,42 @@
rm -f *.texi python-*.info python-*.info-[0-9]*
-# This makes sure we can build info files from a "clean" tree,
-# in case we haven't already built the HTML:
+# The HTML files are dependent on the .aux files, which are dependent on the
+# LaTeX source documents. This makes sure we can build info files from a
+# "clean" tree:
+
+$(HTMLDIR)/api/api.html: $(PAPERDIR)/api.aux $(BUILDINDEX)
+ (cd $(TOPDIR); $(MAKE) htmlapi)
+
+$(HTMLDIR)/ext/ext.html: $(PAPERDIR)/ext.aux
+ (cd $(TOPDIR); $(MAKE) htmlext)
+
+$(HTMLDIR)/lib/lib.html: $(PAPERDIR)/lib.aux $(BUILDINDEX)
+ (cd $(TOPDIR); $(MAKE) htmllib)
+
+$(HTMLDIR)/mac/mac.html: $(MACFILES) $(BUILDINDEX)
+ (cd $(TOPDIR); $(MAKE) htmlmac)
+
+$(HTMLDIR)/ref/ref.html: $(PAPERDIR)/ref.aux $(BUILDINDEX)
+ (cd $(TOPDIR); $(MAKE) htmlref)
-$(HTMLDIR)/api/api.html:
- (cd $(HTMLDIR); $(MAKE) api)
+$(HTMLDIR)/tut/tut.html: $(PAPERDIR)/tut.aux
+ (cd $(TOPDIR); $(MAKE) htmltut)
-$(HTMLDIR)/ext/ext.html:
- (cd $(HTMLDIR); $(MAKE) ext)
-$(HTMLDIR)/lib/lib.html:
- (cd $(HTMLDIR); $(MAKE) lib)
+include ../Makefile.deps
-$(HTMLDIR)/mac/mac.html:
- (cd $(HTMLDIR); $(MAKE) mac)
+$(PAPERDIR)/api.aux: $(APIFILES)
+ (cd $(PAPERDIR); $(MAKE) PAPER=$(PAPER) api.dvi)
-$(HTMLDIR)/ref/ref.html:
- (cd $(HTMLDIR); $(MAKE) ref)
+$(PAPERDIR)/ext.aux: $(EXTFILES)
+ (cd $(PAPERDIR); $(MAKE) PAPER=$(PAPER) ext.dvi)
-$(HTMLDIR)/tut/tut.html:
- (cd $(HTMLDIR); $(MAKE) tut)
+$(PAPERDIR)/lib.aux: $(LIBFILES)
+ (cd $(PAPERDIR); $(MAKE) PAPER=$(PAPER) lib.dvi)
-$(HTMLDIR)/dist/dist.html:
- (cd $(HTMLDIR); $(MAKE) dist)
+$(PAPERDIR)/ref.aux: $(REFFILES)
+ (cd $(PAPERDIR); $(MAKE) PAPER=$(PAPER) ref.dvi)
-$(HTMLDIR)/inst/inst.html:
- (cd $(HTMLDIR); $(MAKE) inst)
+$(PAPERDIR)/tut.aux: $(TUTFILES)
+ (cd $(PAPERDIR); $(MAKE) PAPER=$(PAPER) tut.dvi)
diff -ru main/contrib/python-2.0/dist/src/Doc/inst/inst.tex main/Apps/ActivePython-2.0/src/Core/Doc/inst/inst.tex
--- main/contrib/python-2.0/dist/src/Doc/inst/inst.tex Mon Mar 12 16:11:28 2001
+++ main/Apps/ActivePython-2.0/src/Core/Doc/inst/inst.tex Mon Mar 12 16:10:18 2001
@@ -1,4 +1,6 @@
\documentclass{howto}
+\usepackage{ltxmarkup}
+\usepackage{times}
\usepackage{distutils}
\title{Installing Python Modules}
@@ -41,14 +43,7 @@
%Abstract this!
%\end{abstract}
-
-% The ugly "%begin{latexonly}" pseudo-environment supresses the table
-% of contents for HTML generation.
-%
-%begin{latexonly}
\tableofcontents
-%end{latexonly}
-
\section{Introduction}
\label{intro}
@@ -120,7 +115,6 @@
setup script \file{setup.py}, and a \file{README.txt} (or possibly
\file{README}), which should explain that building and installing the
module distribution is a simple matter of running
-
\begin{verbatim}
python setup.py install
\end{verbatim}
@@ -146,20 +140,20 @@
are already familiar with how the Python library is laid out on their
platform, and know where to copy various files in order for Python to
find them. This document makes no such assumptions, and explains how
-the Python library is laid out on three major platforms (\UNIX, Windows,
-and MacOS), so that you can understand what happens when the Distutils
+the Python library is laid out on three major platforms (Unix, Windows,
+and Mac~OS), so that you can understand what happens when the Distutils
do their job \emph{and} know how to install modules manually when the
module author fails to provide a setup script.
Additionally, while there has not previously been a standard
installation mechanism, Python has had some standard machinery for
-building extensions on \UNIX{} since Python 1.4. This
-machinery (the \file{Makefile.pre.in} file) is superseded by the
-Distutils, but it will no doubt live on in older module distributions
-for a while. This \file{Makefile.pre.in} mechanism is documented in
-the \citetitle[../ext/ext.html]{Extending \& Embedding Python} manual,
-but that manual is aimed at module developers---hence, we include
-documentation for builders/installers here.
+building extensions on Unix since Python \XXX{version?}. This machinery
+(the \file{Makefile.pre.in} file) is superseded by the Distutils, but it
+will no doubt live on in older module distributions for a while. This
+\file{Makefile.pre.in} mechanism is documented in the ``Extending \&
+Embedding Python'' manual, but that manual is aimed at module
+developers---hence, we include documentation for builders/installers
+here.
All of the pre-Distutils material is tucked away in
section~\ref{pre-distutils}.
@@ -170,14 +164,12 @@
As described in section~\ref{new-standard}, building and installing
a module distribution using the Distutils is usually one simple command:
-
\begin{verbatim}
python setup.py install
\end{verbatim}
-
-On \UNIX, you'd run this command from a shell prompt; on Windows, you
+On Unix, you'd run this command from a shell prompt; on Windows, you
have to open a command prompt window (``DOS box'') and do it there; on
-MacOS, things are a tad more complicated (see below).
+Mac~OS, things are a tad more complicated (see below).
\subsection{Platform variations}
@@ -186,9 +178,8 @@
You should always run the setup command from the distribution root
directory, i.e. the top-level subdirectory that the module source
distribution unpacks into. For example, if you've just downloaded a
-module source distribution \file{foo-1.0.tar.gz} onto a
-\UNIX{} system, the normal thing to do is:
-
+module source distribution \file{foo-1.0.tar.gz} onto a Unix system, the
+normal thing to do is:
\begin{verbatim}
gunzip -c foo-1.0.tar.gz | tar xf - # unpacks into directory foo-1.0
cd foo-1.0
@@ -202,13 +193,12 @@
command-line tool (such as \program{unzip} or \program{pkunzip}) to
unpack the archive. Then, open a command prompt window (``DOS box''),
and run:
-
\begin{verbatim}
cd c:\Temp\foo-1.0
python setup.py install
\end{verbatim}
-On MacOS, you have to go through a bit more effort to supply
+On Mac~OS, you have to go through a bit more effort to supply
command-line arguments to the setup script:
\begin{itemize}
\item hit option-double-click on the script's icon (or option-drop it
@@ -219,9 +209,8 @@
voluminous and often useful)
\item when the command-line dialog pops up, enter ``install'' (you
can, of course, enter any Distutils command-line as described in this
- document or in \citetitle[../dist/dist.html]{Distributing Python
- Modules}: just leave off the initial \code{python setup.py} and
- you'll be fine)
+ document or in the ``Distributing Python Modules'' document: just
+ leave of the initial \code{python setup.py} and you'll be fine)
\end{itemize}
\XXX{this should change: every Distutils setup script will need
command-line arguments for every run (and should probably keep stdout
@@ -242,12 +231,10 @@
For example, you can build everything in one step, and then install
everything in a second step, by invoking the setup script twice:
-
\begin{verbatim}
python setup.py build
python setup.py install
\end{verbatim}
-
(If you do this, you will notice that running the \command{install}
command first runs the \command{build} command, which---in this
case---quickly notices that it has nothing to do, since everything in
@@ -269,33 +256,29 @@
concerned with speed, or want to keep the source tree pristine, you can
change the build directory with the \longprogramopt{build-base} option.
For example:
-
\begin{verbatim}
python setup.py build --build-base=/tmp/pybuild/foo-1.0
\end{verbatim}
-
(Or you could do this permanently with a directive in your system or
personal Distutils configuration file; see
section~\ref{config-files}.) Normally, this isn't necessary.
The default layout for the build tree is as follows:
-
\begin{verbatim}
--- build/ --- lib/
or
--- build/ --- lib./
temp./
\end{verbatim}
-
where \code{} expands to a brief description of the current
-OS/hardware platform and Python version. The first form, with just a
-\file{lib} directory, is used for ``pure module distributions''---that
-is, module distributions that include only pure Python modules. If a
-module distribution contains any extensions (modules written in C/\Cpp),
-then the second form, with two \code{} directories, is used. In
-that case, the \file{temp.\filevar{plat}} directory holds temporary
-files generated by the compile/link process that don't actually get
-installed. In either case, the \file{lib} (or
+OS/hardware platform. The first form, with just a \file{lib} directory,
+is used for ``pure module distributions''---that is, module
+distributions that include only pure Python modules. If a module
+distribution contains any extensions (modules written in C/C++, or Java
+for JPython), then the second form, with two \code{} directories,
+is used. In that case, the \file{temp.\filevar{plat}} directory holds
+temporary files generated by the compile/link process that don't
+actually get installed. In either case, the \file{lib} (or
\file{lib.\filevar{plat}}) directory contains all Python modules (pure
Python and extensions) that will be installed.
@@ -317,15 +300,15 @@
\code{setup.py install}---then the \command{install} command installs to
the standard location for third-party Python modules. This location
varies by platform and by how you built/installed Python itself. On
-\UNIX{} and MacOS, it also depends on whether the module distribution
+Unix and Mac OS, it also depends on whether the module distribution
being installed is pure Python or contains extensions (``non-pure''):
\begin{tableiv}{l|l|l|c}{textrm}%
{Platform}{Standard installation location}{Default value}{Notes}
- \lineiv{\UNIX{} (pure)}
+ \lineiv{Unix (pure)}
{\filenq{\filevar{prefix}/lib/python2.0/site-packages}}
{\filenq{/usr/local/lib/python2.0/site-packages}}
{(1)}
- \lineiv{\UNIX{} (non-pure)}
+ \lineiv{Unix (non-pure)}
{\filenq{\filevar{exec-prefix}/lib/python2.0/site-packages}}
{\filenq{/usr/local/lib/python2.0/site-packages}}
{(1)}
@@ -333,13 +316,13 @@
{\filenq{\filevar{prefix}}}
{\filenq{C:\textbackslash{}Python}}
{(2)}
- \lineiv{MacOS (pure)}
- {\filenq{\filevar{prefix}:Lib:site-packages}}
- {\filenq{Python:Lib:site-packages}}
+ \lineiv{Mac~OS (pure)}
+ {\filenq{\filevar{prefix}:Lib}}
+ {\filenq{Python:Lib} \XXX{???}}
{}
- \lineiv{MacOS (non-pure)}
- {\filenq{\filevar{prefix}:Lib:site-packages}}
- {\filenq{Python:Lib:site-packages}}
+ \lineiv{Mac~OS (non-pure)}
+ {\filevar{prefix}:Mac:PlugIns}
+ {\filenq{Python:Mac:PlugIns}\XXX{???}}
{}
\end{tableiv}
@@ -348,7 +331,7 @@
\item[(1)] Most Linux distributions include Python as a standard part of
the system, so \filevar{prefix} and \filevar{exec-prefix} are usually
both \file{/usr} on Linux. If you build Python yourself on Linux (or
- any \UNIX-like system), the default \filevar{prefix} and
+ any Unix-like system), the default \filevar{prefix} and
\filevar{exec-prefix} are \file{/usr/local}.
\item[(2)] The default installation directory on Windows was
\file{C:\textbackslash{}Program Files\textbackslash{}Python} under
@@ -357,12 +340,12 @@
\filevar{prefix} and \filevar{exec-prefix} stand for the directories
that Python is installed to, and where it finds its libraries at
-run-time. They are always the same under Windows and MacOS, and very
-