summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/command/sdist.py
Commit message (Collapse)AuthorAgeFilesLines
* Whitespace normalization.Fred Drake2001-12-061-5/+5
|
* Call the write_pkg_info methodAndrew M. Kuchling2001-03-221-2/+2
|
* Untabified.Greg Ward2000-10-141-1/+1
|
* Standardized whitespace around function calls.Greg Ward2000-09-301-48/+48
|
* Renamed '--keep-tree' option to '--keep-temp', for consistencyGreg Ward2000-09-251-6/+6
| | | | with the bdist_* commands.
* Added 'boolean_options' list to support config file parsing.Greg Ward2000-09-251-0/+3
|
* Catch up to recent changes in TextFile (spotted by Bastian Kleineidam).Greg Ward2000-09-181-1/+1
|
* Bullet-proofing of 'make_release_tree()':Greg Ward2000-09-061-6/+14
| | | | | | - 'mkpath()' the distribution dir in case of empty manifest - warn if empty manifest - detect, warn about, and skip non-regular files in manifest
* Reorganized logic in 'get_file_list()' so it's easier to read, and fixed aGreg Ward2000-09-061-7/+8
| | | | | bug to boot: now works even if both MANIFEST and MANIFEST.in don't exist. Don't hardcode setup.py, use 'self.distribution.script_name'.
* Added 'script_name' and 'script_args' instance attributes to Distribution.Greg Ward2000-08-291-1/+4
| | | | | | | | Changed 'core.setup()' so it sets them to reasonable defaults. Tweaked how the "usage" string is generated: 'core' now provides 'gen_usage()', which is used instead of 'USAGE'. Modified "build_py" and "sdist" commands to refer to 'self.distribution.script_name' rather than 'sys.argv[0]'.
* Don't bother to 'mkpath()' the 'dist_dir' -- that's now taken care ofGreg Ward2000-08-221-2/+0
| | | | in archive_util.py.
* Fixed imports from '*util' modules to not just import everything from util.Greg Ward2000-08-051-10/+8
|
* Catch syntax errors from processing template lines and turn them intoGreg Ward2000-07-301-2/+9
| | | | | mere warnings. Call 'findall()' on our FileList object before we start using it seriously.
* Replaced 'self.files' with 'self.filelist': now we carry around a FileListGreg Ward2000-07-301-54/+38
| | | | | instance instead of a list of filenames. Simplifies the "sdist" command only a bit, but should allow greater simplification of FileList.
* The other half of Rene Liebscher's patch to add the Template class,Greg Ward2000-07-301-305/+15
| | | | | which I renamed to FileList: remove all the file-list-generation code from the sdist command and adapt it to use the new FileList class instead.
* Remove unused 'search_dir()' method.Greg Ward2000-07-271-21/+1
| | | | Comment tweak.
* Added the --dist-dir option to control where the archive(s) are put;Greg Ward2000-07-051-1/+11
| | | | defaults to 'dist' (ie. no longer in the distribution root).
* Fixed 'findall()' so it only returns regular files -- no directories.Greg Ward2000-06-291-18/+54
| | | | | | | | | | | | | Changed 'prune_file_list()' so it also prunes out RCS and CVS directories. Added 'is_regex' parameter to 'select_pattern()', 'exclude_pattern()', and 'translate_pattern()', so that you don't have to be constrained by the simple shell-glob-like pattern language, and can escape into full-blown regexes when needed. Currently this is only available in code -- it's not exposed in the manifest template mini-language. Added 'prune' option (controlled by --prune and --no-prune) to determine whether we call 'prune_file_list()' or not -- it's true by default. Fixed 'negative_opt' -- it was misnamed and not being seen by dist.py. Added --no-defaults to the option table, so it's seen by FancyGetopt.
* Changed so all the help-generating functions are defined, at module-level,Greg Ward2000-06-241-18/+17
| | | | | | | in the module of the command classes that have command-specific help options. This lets us keep the principle of lazily importing the ccompiler module, and also gets away from defining non-methods at class level.
* Stylistic/formatting changes to Rene Liebscher's '--help-xxx' patch.Greg Ward2000-06-241-2/+2
|
* Fix inspired by Rene Liebscher: if setup script is newer than theGreg Ward2000-06-211-3/+26
| | | | manifest, regenerate the manifest.
* Include setup.cfg in the list of default files to distribute.Greg Ward2000-06-081-1/+5
|
* Moved the code that prunes the file list after reading the manifestGreg Ward2000-06-081-9/+14
| | | | | | | | | | template into a new method 'prune_file_list()', called from 'get_file_list()' rather than 'read_manifest()' -- this keeps 'read_manifest()' more general. Deleted the redundant call to 'exclude_pattern()' in 'make_distribution()' -- this had the same intention as 'prune_file_list()', but was incomplete (only pruned the release tree, not the build tree) and in the wrong place (the prune wouldn't be reflected in the manifest file).
* Renamed 'find_defaults()' to 'add_defaults()'.Greg Ward2000-06-081-13/+5
| | | | Deleted old, commented-out 'exclude_pattern()' method.
* Docstring addition binge.Greg Ward2000-06-081-15/+44
|
* Docstring reformatting binge.Greg Ward2000-06-081-28/+23
|
* Cosmetic tweaks to imports, the 'show_formats()' function, and theGreg Ward2000-06-081-11/+19
| | | | 'help_options' list; also added an editorial comment.
* Made all debug output go through the 'debug_print()' method instead ofGreg Ward2000-06-081-75/+90
| | | | | | | | | | | | | | | | directly printing to stdout. This was a bit more work than it sounds like it should have been: * turned 'select_pattern()' and 'exclude_pattern()' from functions into methods, so they can refer to 'self' to access the method * commented out the *other* 'exclude_pattern()' method, which appears to be vestigial code that was never cleaned up when the 'exclude_pattern()' function was created * changed the one use of the old 'exclude_pattern()' method to use the new 'exclude_pattern()' (same behaviour, slightly different args) * some code and docstring reformatting * and, of course, changed all the debugging prints to 'debug_print()' calls Added/tweaked some regular ('self.announce()') output for better runtime feedback.
* Patch from Rene Liebscher: this adds "--help-foo" options to list theGreg Ward2000-06-071-2/+17
| | | | | | | | | | values that "--foo" can take for various commands: eg. what formats for "sdist" and "bdist", what compilers for "build_ext" and "build_clib". I have *not* reviewed this patch; I'm checking it in as-is because it also fixes a paper-bag-over-head bug in bdist.py, and because I won't have time to review it properly for several days: so someone else can test it for me, instead!
* Use 'ensure_string_list()' for 'formats' option, so that it can beGreg Ward2000-06-041-2/+1
| | | | spelled sensibly in a config file.
* Remember the list of archive files created in 'make_distribution()'.Greg Ward2000-06-011-1/+13
| | | | Added 'get_archive_files()' so outsiders can get their hands on that list.
* Renamed 'native_path()' to 'convert_path()'.Greg Ward2000-05-311-5/+5
| | | | | Also changed it so it doesn't barf if the path is already in native format (ie. contains os.sep).
* Some far-reaching naming changes:Greg Ward2000-05-271-4/+4
| | | | | | | * Command method 'find_peer()' -> 'get_finalized_command()' * Command method 'run_peer()' -> 'run_command()' Also deleted the 'get_command_option()' method from Command, and fixed the one place where it was used (in "bdist_dumb").
* Patch from Andrew Kuchling: prune out the build and source distributionGreg Ward2000-05-271-0/+7
| | | | | | | | | | directories after all is said and done, so we don't accidentally include those files in the source distribution. (This is the quick and easy way to fix this; Andrew says: "Changing findall() looked like it was going to be messy, so I tried this instead. The only problem is that redundant directory traversals are being done, walking through build/ only to throw out all the files found at the end.").
* Normalized all the end-of-class lines.Greg Ward2000-05-251-1/+1
|
* Supply short form for --manifest-only (-o) and --force-manifest (-f)Greg Ward2000-04-261-2/+2
| | | | options.
* Harry Henry Gebel:Greg Ward2000-04-261-5/+5
| | | | Fix 'sdist.write_manifest()' to respect the value of dry_run.
* Harry Henry Gebel:Greg Ward2000-04-251-2/+1
| | | | | | | | | | | | | | | Adds bztar format to generate .tar.bz2 tarballs Uses the -f argument to overright old tarballs automatically, I am assuming that if the old tarball was wanted it would have been moved or else the version number would have been changed. Uses the -9 argument to bzip2 and gzip to use maximum compression. Compress uses the maximum compression by default. Tests for correct value for the 'compress' argument of make_tarball. This is one less place for someone adding new compression programs to forget to change.
* Check that 'self.formats' is good early on.Greg Ward2000-04-221-3/+8
|
* Changed to call 'get_fullname()', not 'get_full_name()', on Distribution object.Greg Ward2000-04-221-1/+1
|
* Fix 'check_metadata()' so it grovels through the distribution's metadataGreg Ward2000-04-211-6/+6
| | | | | object, rather than through the distribution itself (since I moved the meta- data out to a DistributionMetadata instance).
* Patch from Andrew Kuchling: allow multiple include/exclude patternsGreg Ward2000-04-211-48/+55
| | | | for all commands except 'prune' and 'graft'.
* Coerce all paths in the manifest template to the local path syntax withGreg Ward2000-04-141-7/+7
| | | | 'native_path()'.
* Ditched the unused 'list_only' option.Greg Ward2000-04-091-3/+4
| | | | | | Added code to include source files from 'build_clib' command to default file list -- currently this won't work, since 'build_clib' doesn't have a 'get_source_files()' method!
* Changed to use the new 'has_pure_modules()' and 'has_ext_modules()' methodsGreg Ward2000-03-311-52/+19
| | | | | | | | | | | | | | | provided by Distribution. Cosmetic and error message tweaks. Simplified 'make_release_tree()': * extracted 'distutils.util.create_tree()' * don't have to do hard-linking ourselves -- it's now handled by 'distutils.util.copy_file()' (although the detection of whether hard linking is available still needs to be factored out) Removed 'make_tarball()' and 'make_zipfile()' entirely -- their role is now amply filled by 'distutils.util.make_archive()'. Simplified 'make_distribution()': * use Distribution's new 'get_full_name()' method * use 'make_archive()' instead of if/elif/.../else on the archive format
* Moved the guts of 'make_tarball()' and 'make_zipfile()' to distutils.utilGreg Ward2000-03-291-53/+4
| | | | | in preparation for the 'bdist_dumb' command; these methods remain as trivial wrappers around the versions in distutils.util.
* Patch from Bastian Kleineidam <calvin@cs.uni-sb.de>:Greg Ward2000-03-181-16/+2
| | | | use 'util.remove_tree()' instead of 'nuke_release_tree()'.
* Changed '__rcsid__' to '__revision__'.Greg Ward2000-03-021-1/+1
|
* Fix from est@hyperreal.org: missing initialize in 'find_defaults()'.Greg Ward2000-02-241-0/+1
|
* Renamed 'set_default_options()' to 'initialize_options()', andGreg Ward2000-02-181-2/+2
| | | | 'set_final_options()' to 'finalize_options()'.