summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorAndrew M. Kuchling <amk@amk.ca>2003-01-27 16:36:34 (GMT)
committerAndrew M. Kuchling <amk@amk.ca>2003-01-27 16:36:34 (GMT)
commita31bb379f802784c3be86e06c3f32285703e1df5 (patch)
treeccf2f4c7404ab14f1272195db70e47e9a98987b2 /Doc
parent0a9cc58c859f31c5c698ebee5ad262783bce8e1e (diff)
downloadcpython-a31bb379f802784c3be86e06c3f32285703e1df5.zip
cpython-a31bb379f802784c3be86e06c3f32285703e1df5.tar.gz
cpython-a31bb379f802784c3be86e06c3f32285703e1df5.tar.bz2
Update register example
Diffstat (limited to 'Doc')
-rw-r--r--Doc/whatsnew/whatsnew23.tex26
1 files changed, 16 insertions, 10 deletions
diff --git a/Doc/whatsnew/whatsnew23.tex b/Doc/whatsnew/whatsnew23.tex
index d569333..55a578d 100644
--- a/Doc/whatsnew/whatsnew23.tex
+++ b/Doc/whatsnew/whatsnew23.tex
@@ -726,18 +726,25 @@ To make the catalog a bit more useful, a new optional
\function{setup()} function. A list of
\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}
-setup (name = "Quixote",
- 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'],
+from distutils import core
+kw = ('name': "Quixote",
+ 'version': "0.5.1",
+ 'description': "A highly Pythonic Web application framework",
...
)
+
+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}
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.
it now checks for the \envvar{CC}, \envvar{CFLAGS}, \envvar{CPP},
\envvar{LDFLAGS}, and \envvar{CPPFLAGS} environment variables, using
them to override the settings in Python's configuration (contributed
-by Robert Weber); the \function{get_distutils_options()} method lists
-recently-added extensions to Distutils.
+by Robert Weber).
\item The \module{getopt} module gained a new function,
\function{gnu_getopt()}, that supports the same arguments as the existing