Commit 078fc081 authored by Greg Ward's avatar Greg Ward

Typo fix -- it's 'ext_modules', not 'extensions'.

parent 0ac9b079
...@@ -391,7 +391,7 @@ and nothing else might be: ...@@ -391,7 +391,7 @@ and nothing else might be:
\begin{verbatim} \begin{verbatim}
from distutils.core import setup, Extension from distutils.core import setup, Extension
setup(name = "foo", version = "1.0", setup(name = "foo", version = "1.0",
extensions = [Extension("foo", ["foo.c"])]) ext_modules = [Extension("foo", ["foo.c"])])
\end{verbatim} \end{verbatim}
The \class{Extension} class (actually, the underlying extension-building The \class{Extension} class (actually, the underlying extension-building
...@@ -422,8 +422,8 @@ to \function{setup()}. For example, ...@@ -422,8 +422,8 @@ to \function{setup()}. For example,
\begin{verbatim} \begin{verbatim}
setup(... setup(...
ext_package = "pkg", ext_package = "pkg",
extensions = [Extension("foo", ["foo.c"]), ext_modules = [Extension("foo", ["foo.c"]),
Extension("subpkg.bar", ["bar.c"])] Extension("subpkg.bar", ["bar.c"])]
) )
\end{verbatim} \end{verbatim}
will compile \file{foo.c} to the extension \module{pkg.foo}, and will compile \file{foo.c} to the extension \module{pkg.foo}, and
......
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