Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
setuptools
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jérome Perrin
setuptools
Commits
99ddd15c
Commit
99ddd15c
authored
Jun 08, 2000
by
Greg Ward
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Renamed 'find_defaults()' to 'add_defaults()'.
Deleted old, commented-out 'exclude_pattern()' method.
parent
691fce64
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
13 deletions
+5
-13
command/sdist.py
command/sdist.py
+5
-13
No files found.
command/sdist.py
View file @
99ddd15c
...
...
@@ -189,7 +189,7 @@ class sdist (Command):
# Add default file set to 'files'
if
self
.
use_defaults
:
self
.
fin
d_defaults
()
self
.
ad
d_defaults
()
# Read manifest template if it exists
if
template_exists
:
...
...
@@ -219,7 +219,7 @@ class sdist (Command):
# get_file_list ()
def
fin
d_defaults
(
self
):
def
ad
d_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
'
fin
d_defaults()' and 'read_template()') to the manifest file named
'
ad
d_defaults()' and 'read_template()') to the manifest file named
by 'self.manifest'.
"""
self
.
execute
(
write_file
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment