mirror of
				https://github.com/python/cpython.git
				synced 2025-11-04 03:44:55 +00:00 
			
		
		
		
	Typo fix -- it's 'ext_modules', not 'extensions'.
This commit is contained in:
		
							parent
							
								
									0ac9b07963
								
							
						
					
					
						commit
						078fc0816d
					
				
					 1 changed files with 3 additions and 3 deletions
				
			
		
							
								
								
									
										6
									
								
								Doc/dist/dist.tex
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										6
									
								
								Doc/dist/dist.tex
									
										
									
									
										vendored
									
									
								
							| 
						 | 
					@ -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,
 | 
				
			||||||
\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
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue