[Python-checkins] CVS: distutils/doc/dist dist.tex,1.15,1.16
Greg Ward
python-dev@python.org
Fri, 23 Jun 2000 18:45:49 -0700
Update of /cvsroot/python/distutils/doc/dist
In directory slayer.i.sourceforge.net:/tmp/cvs-serv10880
Modified Files:
dist.tex
Log Message:
Some clarifications to the 'A simple example' section.
Index: dist.tex
===================================================================
RCS file: /cvsroot/python/distutils/doc/dist/dist.tex,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -r1.15 -r1.16
*** dist.tex 2000/06/24 01:33:14 1.15
--- dist.tex 2000/06/24 01:45:47 1.16
***************
*** 70,74 ****
Python, there are no arbitrary limits to what you can do. If all you
want to do is distribute a module called \module{foo}, contained in a
! file \file{foo.py}, then you can get away with as little as this:
\begin{verbatim}
from distutils.core import setup
--- 70,74 ----
Python, there are no arbitrary limits to what you can do. If all you
want to do is distribute a module called \module{foo}, contained in a
! file \file{foo.py}, then your setup script can be as little as this:
\begin{verbatim}
from distutils.core import setup
***************
*** 77,87 ****
py_modules = ["foo"])
\end{verbatim}
Some observations:
\begin{itemize}
! \item all information that you supply to the Distutils is supplied as
keyword arguments to the \function{setup()} function
\item those keyword arguments fall into two categories: package
meta-data (name, version number) and information about what's in the
! package (list of pure modules, in this case)
\item modules are specified by module name, not filename (the same will
hold true for packages and extensions)
--- 77,88 ----
py_modules = ["foo"])
\end{verbatim}
+
Some observations:
\begin{itemize}
! \item most information that you supply to the Distutils is supplied as
keyword arguments to the \function{setup()} function
\item those keyword arguments fall into two categories: package
meta-data (name, version number) and information about what's in the
! package (a list of pure Python modules, in this case)
\item modules are specified by module name, not filename (the same will
hold true for packages and extensions)
***************
*** 90,94 ****
\end{itemize}
! To create a source distribution for this module, you would run
\begin{verbatim}
python setup.py sdist
--- 91,96 ----
\end{itemize}
! To create a source distribution for this module, you would create a
! setup script, \file{setup.py}, containing the above code, and run:
\begin{verbatim}
python setup.py sdist
***************
*** 137,142 ****
zip file with a minimal user interface, which is enough for small- to
medium-sized module collections. You'll need to have version XXX of
! Wise installed on your system for the \command{bdist\_wise} to work;
! it's available from \url{http://foo/bar/baz}.)
Other \command{bdist} commands exist for other platforms: for example,
--- 139,144 ----
zip file with a minimal user interface, which is enough for small- to
medium-sized module collections. You'll need to have version XXX of
! Wise installed on your system for the \command{bdist\_wise} command to
! work; it's available from \url{http://foo/bar/baz}.)
Other \command{bdist} commands exist for other platforms: for example,