Methods
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
Methods inherited from class distutils.command.sdist.sdist
check_metadata, finalize_options, get_archive_files, initialize_options, make_distribution, make_release_tree, read_manifest, read_template, write_manifest
Methods inherited from class distutils.cmd.Command
__getattr__, __init__, announce, copy_file, copy_tree, debug_print, dump_options, ensure_dirname, ensure_filename, ensure_finalized, ensure_string, ensure_string_list, execute, get_command_name, get_finalized_command, get_sub_commands, make_archive, make_file, mkpath, move_file, reinitialize_command, run_command, set_undefined_options, spawn, warn
Fields
description = 'create a source distribution (tarball, zip file, etc.)'
user_options = [('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]')]
Fields
Fields