mirror of
https://github.com/python/cpython.git
synced 2025-09-30 12:21:51 +00:00
SF bug #1539336, distutils example code missing
This commit is contained in:
parent
1872b1c01f
commit
bfa5f0bb5d
1 changed files with 2 additions and 0 deletions
2
Doc/dist/dist.tex
vendored
2
Doc/dist/dist.tex
vendored
|
@ -1992,6 +1992,7 @@ If the \module{foo} extension belongs in the root package, the setup
|
||||||
script for this could be
|
script for this could be
|
||||||
\begin{verbatim}
|
\begin{verbatim}
|
||||||
from distutils.core import setup
|
from distutils.core import setup
|
||||||
|
from distutils.extension import Extension
|
||||||
setup(name='foobar',
|
setup(name='foobar',
|
||||||
version='1.0',
|
version='1.0',
|
||||||
ext_modules=[Extension('foo', ['foo.c'])],
|
ext_modules=[Extension('foo', ['foo.c'])],
|
||||||
|
@ -2006,6 +2007,7 @@ the \module{foopkg} package simply by changing the name of the
|
||||||
extension:
|
extension:
|
||||||
\begin{verbatim}
|
\begin{verbatim}
|
||||||
from distutils.core import setup
|
from distutils.core import setup
|
||||||
|
from distutils.extension import Extension
|
||||||
setup(name='foobar',
|
setup(name='foobar',
|
||||||
version='1.0',
|
version='1.0',
|
||||||
ext_modules=[Extension('foopkg.foo', ['foo.c'])],
|
ext_modules=[Extension('foopkg.foo', ['foo.c'])],
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue