Fixed #2279: distutils.sdist.add_defaults now add files listed in package_data and data_files
diff --git a/Doc/distutils/setupscript.rst b/Doc/distutils/setupscript.rst
index 9308288..8179031 100644
--- a/Doc/distutils/setupscript.rst
+++ b/Doc/distutils/setupscript.rst
@@ -427,6 +427,7 @@
distribution being described. If no qualifiers are given, all versions of the
named module or package are understood to be obsoleted.
+.. _distutils-installing-scripts:
Installing Scripts
==================
@@ -449,6 +450,12 @@
scripts=['scripts/xmlproc_parse', 'scripts/xmlproc_val']
)
+All the scripts will also be added to the ``MANIFEST``
+file if no template is provided. See :ref:`manifest`.
+
+.. versionadded:: 2.7
+
+.. _distutils-installing-package-data:
Installing Package Data
=======================
@@ -492,6 +499,12 @@
.. versionadded:: 2.4
+All the files that match ``package_data`` will be added to the ``MANIFEST``
+file if no template is provided. See :ref:`manifest`.
+
+.. versionadded:: 2.7
+
+.. _distutils-additional-files:
Installing Additional Files
===========================
@@ -527,6 +540,11 @@
files directly in the target directory, an empty string should be given as the
directory.
+All the files that match ``data_files`` will be added to the ``MANIFEST``
+file if no template is provided. See :ref:`manifest`.
+
+.. versionadded:: 2.7
+
.. _meta-data:
diff --git a/Doc/distutils/sourcedist.rst b/Doc/distutils/sourcedist.rst
index 960cc0a..5c0e5d0 100644
--- a/Doc/distutils/sourcedist.rst
+++ b/Doc/distutils/sourcedist.rst
@@ -74,6 +74,7 @@
:meth:`get_source_files` method in :file:`build_clib.py`! **\*\***)
* scripts identified by the :option:`scripts` option
+ See :ref:`distutils-installing-scripts`.
* anything that looks like a test script: :file:`test/test\*.py` (currently, the
Distutils don't do anything with test scripts except include them in source
@@ -83,6 +84,17 @@
* :file:`README.txt` (or :file:`README`), :file:`setup.py` (or whatever you
called your setup script), and :file:`setup.cfg`
+* all files that matches the ``package_data`` metadata.
+ See :ref:`distutils-installing-package-data`.
+
+ .. versionadded:: 2.7
+
+* all files that matches the ``data_files`` metadata.
+ See :ref:`distutils-additional-files`.
+
+ .. versionadded:: 2.7
+
+
Sometimes this is enough, but usually you will want to specify additional files
to distribute. The typical way to do this is to write a *manifest template*,
called :file:`MANIFEST.in` by default. The manifest template is just a list of