Commit a31bb379 authored by Andrew M. Kuchling's avatar Andrew M. Kuchling

Update register example

parent 0a9cc58c
...@@ -726,18 +726,25 @@ To make the catalog a bit more useful, a new optional ...@@ -726,18 +726,25 @@ To make the catalog a bit more useful, a new optional
\function{setup()} function. A list of \function{setup()} function. A list of
\citetitle[http://www.tuxedo.org/\%7Eesr/trove/]{Trove}-style strings can be supplied to help classify the software. \citetitle[http://www.tuxedo.org/\%7Eesr/trove/]{Trove}-style strings can be supplied to help classify the software.
Here's an example \file{setup.py} with classifiers: Here's an example \file{setup.py} with classifiers, written to be compatible
with older versions of the Distutils:
\begin{verbatim} \begin{verbatim}
setup (name = "Quixote", from distutils import core
version = "0.5.1", kw = ('name': "Quixote",
description = "A highly Pythonic Web application framework", 'version': "0.5.1",
... 'description': "A highly Pythonic Web application framework",
classifiers= ['Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Environment :: No Input/Output (Daemon)',
'Intended Audience :: Developers'],
... ...
) )
if (hasattr(core, 'setup_keywords') and
'classifiers' in core.setup_keywords):
kw['classifiers'] = \
['Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Environment :: No Input/Output (Daemon)',
'Intended Audience :: Developers'],
core.setup (**kw)
\end{verbatim} \end{verbatim}
The full list of classifiers can be obtained by running The full list of classifiers can be obtained by running
...@@ -1279,8 +1286,7 @@ Modifying \file{sample.h} would then cause the module to be recompiled. ...@@ -1279,8 +1286,7 @@ Modifying \file{sample.h} would then cause the module to be recompiled.
it now checks for the \envvar{CC}, \envvar{CFLAGS}, \envvar{CPP}, it now checks for the \envvar{CC}, \envvar{CFLAGS}, \envvar{CPP},
\envvar{LDFLAGS}, and \envvar{CPPFLAGS} environment variables, using \envvar{LDFLAGS}, and \envvar{CPPFLAGS} environment variables, using
them to override the settings in Python's configuration (contributed them to override the settings in Python's configuration (contributed
by Robert Weber); the \function{get_distutils_options()} method lists by Robert Weber).
recently-added extensions to Distutils.
\item The \module{getopt} module gained a new function, \item The \module{getopt} module gained a new function,
\function{gnu_getopt()}, that supports the same arguments as the existing \function{gnu_getopt()}, that supports the same arguments as the existing
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment