mirror of
https://github.com/python/cpython.git
synced 2025-07-30 22:54:16 +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
|
||||
\begin{verbatim}
|
||||
from distutils.core import setup
|
||||
from distutils.extension import Extension
|
||||
setup(name='foobar',
|
||||
version='1.0',
|
||||
ext_modules=[Extension('foo', ['foo.c'])],
|
||||
|
@ -2006,6 +2007,7 @@ the \module{foopkg} package simply by changing the name of the
|
|||
extension:
|
||||
\begin{verbatim}
|
||||
from distutils.core import setup
|
||||
from distutils.extension import Extension
|
||||
setup(name='foobar',
|
||||
version='1.0',
|
||||
ext_modules=[Extension('foopkg.foo', ['foo.c'])],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue