diff options
author | Greg Ward <gward@python.net> | 2000-06-08 00:52:52 (GMT) |
---|---|---|
committer | Greg Ward <gward@python.net> | 2000-06-08 00:52:52 (GMT) |
commit | 4a7319ca286e78ae9ddf9f86a50eee3eab813855 (patch) | |
tree | cb620f9bb4c50ce8f60a7527723b62c44a4974fc /Lib/distutils | |
parent | c3c8c6edbbe14c812e8e330a2b616d657dec9b5c (diff) | |
download | cpython-4a7319ca286e78ae9ddf9f86a50eee3eab813855.zip cpython-4a7319ca286e78ae9ddf9f86a50eee3eab813855.tar.gz cpython-4a7319ca286e78ae9ddf9f86a50eee3eab813855.tar.bz2 |
Renamed 'find_defaults()' to 'add_defaults()'.
Deleted old, commented-out 'exclude_pattern()' method.
Diffstat (limited to 'Lib/distutils')
-rw-r--r-- | Lib/distutils/command/sdist.py | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/Lib/distutils/command/sdist.py b/Lib/distutils/command/sdist.py index 2a4d346..2624135 100644 --- a/Lib/distutils/command/sdist.py +++ b/Lib/distutils/command/sdist.py @@ -189,7 +189,7 @@ class sdist (Command): # Add default file set to 'files' if self.use_defaults: - self.find_defaults () + self.add_defaults () # Read manifest template if it exists if template_exists: @@ -219,7 +219,7 @@ class sdist (Command): # get_file_list () - def find_defaults (self): + def add_defaults (self): """Add all the default files to self.files: - README or README.txt - setup.py @@ -268,6 +268,8 @@ class sdist (Command): build_clib = self.get_finalized_command ('build_clib') self.files.extend (build_clib.get_source_files ()) + # add_defaults () + def search_dir (self, dir, pattern=None): """Recursively find files under 'dir' matching 'pattern' (a string @@ -289,16 +291,6 @@ class sdist (Command): # search_dir () -# def exclude_pattern (self, pattern): -# """Remove filenames from 'self.files' that match 'pattern'.""" -# self.debug_print("exclude_pattern: pattern=%s" % pattern) -# pattern_re = translate_pattern (pattern) -# for i in range (len (self.files)-1, -1, -1): -# if pattern_re.match (self.files[i]): -# self.debug_print("removing %s" % self.files[i]) -# del self.files[i] - - def recursive_exclude_pattern (self, dir, pattern=None): """Remove filenames from 'self.files' that are under 'dir' and whose basenames match 'pattern'. @@ -544,7 +536,7 @@ class sdist (Command): def write_manifest (self): """Write the file list in 'self.files' (presumably as filled in by - 'find_defaults()' and 'read_template()') to the manifest file named + 'add_defaults()' and 'read_template()') to the manifest file named by 'self.manifest'. """ self.execute(write_file, |