Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
d1466b96
Commit
d1466b96
authored
Jan 30, 2000
by
Greg Ward
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow either README or README.txt as a "standard file".
parent
a002edc8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
4 deletions
+16
-4
Lib/distutils/command/dist.py
Lib/distutils/command/dist.py
+16
-4
No files found.
Lib/distutils/command/dist.py
View file @
d1466b96
...
...
@@ -219,12 +219,24 @@ class Dist (Command):
def find_defaults (self):
standards = [
'README'
, 'setup.py']
standards = [
('README', 'README.txt')
, 'setup.py']
for fn in standards:
if os.path.exists (fn):
self.files.append (fn)
if type (fn) is TupleType:
alts = fn
for fn in alts:
if os.path.exists (fn):
got_it = 1
self.files.append (fn)
break
if not got_it:
self.warn ("
standard
file
not
found
:
should
have
one
of
" +
string.join (alts, ', '))
else:
self.warn ("
standard
file
%
s
not
found
" % fn)
if os.path.exists (fn):
self.files.append (fn)
else:
self.warn ("
standard
file
%
s
not
found
" % fn)
optional = ['test/test*.py']
for pattern in optional:
...
...
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