summaryrefslogtreecommitdiffstats
path: root/Doc/distutils/sourcedist.rst
diff options
context:
space:
mode:
authorÉric Araujo <merwok@netwok.org>2010-08-14 02:30:34 (GMT)
committerÉric Araujo <merwok@netwok.org>2010-08-14 02:30:34 (GMT)
commitda668ff24fc7d959ad2938f128281dcc49d168d8 (patch)
treec3472aa284598314ea66b2319d744bf4d9ef6b53 /Doc/distutils/sourcedist.rst
parente406ef41b162698478df3f7a000999debb7135f7 (diff)
downloadcpython-da668ff24fc7d959ad2938f128281dcc49d168d8.zip
cpython-da668ff24fc7d959ad2938f128281dcc49d168d8.tar.gz
cpython-da668ff24fc7d959ad2938f128281dcc49d168d8.tar.bz2
Use a marker in generated MANIFEST files, don't touch files without it. Fixes #8688.
Diffstat (limited to 'Doc/distutils/sourcedist.rst')
-rw-r--r--Doc/distutils/sourcedist.rst13
1 files changed, 8 insertions, 5 deletions
diff --git a/Doc/distutils/sourcedist.rst b/Doc/distutils/sourcedist.rst
index b829f1d..8a083a2 100644
--- a/Doc/distutils/sourcedist.rst
+++ b/Doc/distutils/sourcedist.rst
@@ -103,6 +103,10 @@ per line, regular files (or symlinks to them) only. If you do supply your own
:file:`MANIFEST`, you must specify everything: the default set of files
described above does not apply in this case.
+.. versionadded:: 3.2
+ :file:`MANIFEST` files start with a comment indicated they are generated.
+ Files without this comment are not overwritten or removed.
+
The manifest template has one command per line, where each command specifies a
set of files to include or exclude from the source distribution. For an
example, again we turn to the Distutils' own manifest template::
@@ -187,10 +191,6 @@ The normal course of operations for the :command:`sdist` command is as follows:
* if neither :file:`MANIFEST` nor :file:`MANIFEST.in` exist, create a manifest
with just the default file set
-* if either :file:`MANIFEST.in` or the setup script (:file:`setup.py`) are more
- recent than :file:`MANIFEST`, recreate :file:`MANIFEST` by reading
- :file:`MANIFEST.in`
-
* use the list of files now in :file:`MANIFEST` (either just generated or read
in) to create the source distribution archive(s)
@@ -205,4 +205,7 @@ distribution::
:option:`-o` is a shortcut for :option:`--manifest-only`.
-
+.. versionchanged:: 3.2
+ An existing generated :file:`MANIFEST` will be regenerated without
+ :command:`sdist` comparing its modification time to the one of
+ :file:`MANIFEST.in` or :file:`setup.py`.