summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/command/sdist.py
Commit message (Collapse)AuthorAgeFilesLines
* Revert regression from r81256 (with release manager approval, see #8688)Éric Araujo2010-08-141-27/+59
|
* Merged revisions 81261 via svnmerge fromTarek Ziadé2010-05-171-1/+2
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81261 | tarek.ziade | 2010-05-17 12:54:43 +0200 (Mon, 17 May 2010) | 1 line upgraded distutils docs w.r.t. the manifest regeneration ........
* Merged revisions 81255 via svnmerge fromTarek Ziadé2010-05-171-58/+25
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81255 | tarek.ziade | 2010-05-17 12:06:20 +0200 (Mon, 17 May 2010) | 1 line Fixed #8688: Distutils now recalculates MANIFEST everytime. ........
* Merged revisions 68951 via svnmerge fromTarek Ziadé2009-01-261-0/+4
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r68951 | tarek.ziade | 2009-01-26 00:34:00 +0100 (Mon, 26 Jan 2009) | 1 line Fixed #1885: --formats=tar,gztar was not working properly in the sdist command ........
* Merged revisions 68293 via svnmerge fromTarek Ziadé2009-01-041-2/+7
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r68293 | tarek.ziade | 2009-01-04 11:37:52 +0100 (Sun, 04 Jan 2009) | 1 line using clearer syntax ........
* Merged revisions 68276 via svnmerge fromTarek Ziadé2009-01-041-1/+7
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r68276 | tarek.ziade | 2009-01-04 01:04:49 +0100 (Sun, 04 Jan 2009) | 1 line fixed #1702551: distutils sdist was not pruning VCS directories under win32 ........
* #1725737: ignore other VC directories other than CVS and SVN's too.Georg Brandl2008-03-061-2/+2
|
* Patch #2167 from calvin: Remove unused importsChristian Heimes2008-02-231-1/+1
|
* Close manifest file.Andrew M. Kuchling2008-02-211-0/+1
| | | | This change doesn't make any difference to CPython, but is a necessary fix for Jython.
* Make dist_files a triple, with the Python target version included,Martin v. Löwis2005-03-231-1/+1
| | | | so that bdist_wininst can specify 'any'.
* Add the upload command. Make all dist commands register theirMartin v. Löwis2005-03-211-0/+1
| | | | outputs with the distribution object.
* Update compatibility comments to 2.1, corresponding to PEP 291 1.13.Martin v. Löwis2004-11-101-1/+1
|
* SF patch 959726: sdist versus SVNTim Peters2004-05-311-2/+2
| | | | The disutils sdist command now ignores .svn directories.
* make sure the default manifest generation includes files identified asFred Drake2004-03-251-0/+4
| | | | | scripts closes SF bug 796042
* Add comment to Distutil files about requiring 1.5.2 compatibility, asAndrew M. Kuchling2002-11-191-0/+2
| | | | suggested by PEP 291.
* Remove 'created by' lines; people can use CVS for this, and the information ↵Andrew M. Kuchling2002-11-141-2/+0
| | | | is often out of date
* Make setup.py less chatty by default.Jeremy Hylton2002-06-041-26/+11
| | | | | | | | | | | | | | | This is a conservative version of SF patch 504889. It uses the log module instead of calling print in various places, and it ignores the verbose argument passed to many functions and set as an attribute on some objects. Instead, it uses the verbosity set on the logger via the command line. The log module is now preferred over announce() and warn() methods that exist only for backwards compatibility. XXX This checkin changes a lot of modules that have no test suite and aren't exercised by the Python build process. It will need substantial testing.
* 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").