2004-11-18 06:22:52

Add all the default files to self.filelist: - setup.py - README or README.txt (in all directories) - all pure Python modules mentioned in setup script - all C sources listed as part of extensions or C libraries in the setup script (doesn't catch C headers!)

Figure out the list of files to include in the source distribution, and put it in 'self.filelist'.

Prune off branches that might slip into the file list as created by 'read_template()', but really don't belong there: * the build tree (typically "build") * the release tree itself (only an issue if we ran "sdist" previously with --keep-temp, or it aborted) * any RCS or CVS directories

'sdist'
'create a source distribution (tarball, zip file, etc.)'
{}
[('manifest-only', 'o', 'just regenerate the manifest and then stop (implies --force-manifest)'), ('formats=', None, 'formats for source distribution (comma-separated list)'), ('keep-temp', 'k', 'keep the distribution tree around after creating archive file(s)'), ('dist-dir=', 'd', 'directory to put the source distribution archive(s) in [default: dist]')]
{'sdist': <class Ft.Lib.DistExt.SDist.SDist>}
(<type 'str'>, <type 'unicode'>)