[PATCH] distutils: Add MANIFEST.in file to include all files in 'python setup.py sdist'

Stephen Thorne stephen at thorne.id.au
Wed Jun 1 02:34:16 CDT 2011


# HG changeset patch
# User Stephen Thorne <stephen at thorne.id.au>
# Date 1306913635 -36000
# Node ID 273241bc44612434b1c67851dfb2bae437c75e62
# Parent  bd34a027f3edad33e71c02def67eb446473b6cf4
distutils: Add MANIFEST.in file to include all files in 'python setup.py sdist'

When running 'python setup.py sdist' many files were omitted from the resulting
tarball that are required for a complete build, including the .h file for the
inotify extension.

This updated MANIEST.in will include nearly all files in the repo. A diff
between file listings of the repo and the tarball will show two things:
 - sdist tarball will include PKG-INFO where the repo does not contain one.
 - repo will contain a MANIFEST file where the sdist does not.

diff --git a/MANIFEST.in b/MANIFEST.in
new file mode 100644
--- /dev/null
+++ b/MANIFEST.in
@@ -0,0 +1,7 @@
+include COPYING CONTRIBUTORS Makefile
+recursive-include contrib *
+recursive-include tests *
+include doc/*
+include i18n/*
+include mercurial/*.h
+include mercurial/pure/*.py


More information about the Mercurial-devel mailing list