(original) (raw)
diff -r 0cf38407a3a2 Doc/distutils/apiref.rst --- a/Doc/distutils/apiref.rst Tue Oct 04 12:28:52 2011 +0200 +++ b/Doc/distutils/apiref.rst Sun Oct 09 09:12:16 2011 -0700 @@ -162,6 +162,8 @@ The Extension class describes a single C or C++extension module in a setup script. It accepts the following keyword arguments in its constructor: + When declaring an extension that's part of a package (i.e. ``package.ext``), a directory with an :file:`__init__.py` file has be to be present, just like any other package. + +------------------------+--------------------------------+---------------------------+ | argument name | value | type | +========================+================================+===========================+ diff -r 0cf38407a3a2 Doc/distutils/setupscript.rst --- a/Doc/distutils/setupscript.rst Tue Oct 04 12:28:52 2011 +0200 +++ b/Doc/distutils/setupscript.rst Sun Oct 09 09:12:16 2011 -0700 @@ -228,6 +228,7 @@ Visual C++. These will be compiled to binary resource (:file:`.res`) files and linked into the executable. +When declaring an extension that's part of a package, a directory with an :file:`__init__.py` file has to be present, just like other packages. Preprocessor options --------------------