Commit d1466b96 authored by Greg Ward's avatar Greg Ward

Allow either README or README.txt as a "standard file".

parent a002edc8
......@@ -219,8 +219,20 @@ class Dist (Command):
def find_defaults (self):
standards = ['README', 'setup.py']
standards = [('README', 'README.txt'), 'setup.py']
for fn in standards:
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:
if os.path.exists (fn):
self.files.append (fn)
else:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment