summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGreg Ward <gward@python.net>2000-06-08 01:22:48 (GMT)
committerGreg Ward <gward@python.net>2000-06-08 01:22:48 (GMT)
commit14c8d05a7a72b814431b193aabf246760753d6ac (patch)
tree071054880ee1f0b6408a5372cf9257421f6db387 /Lib
parentce15c6ce8dac7a7aa25eed6033ce1b459b312aab (diff)
downloadcpython-14c8d05a7a72b814431b193aabf246760753d6ac.zip
cpython-14c8d05a7a72b814431b193aabf246760753d6ac.tar.gz
cpython-14c8d05a7a72b814431b193aabf246760753d6ac.tar.bz2
Include setup.cfg in the list of default files to distribute.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/distutils/command/sdist.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/Lib/distutils/command/sdist.py b/Lib/distutils/command/sdist.py
index 5a78cc5..48e9793 100644
--- a/Lib/distutils/command/sdist.py
+++ b/Lib/distutils/command/sdist.py
@@ -233,6 +233,10 @@ class sdist (Command):
Warns if (README or README.txt) or setup.py are missing; everything
else is optional.
"""
+
+ # XXX name of setup script and config file should be taken
+ # programmatically from the Distribution object (except
+ # it doesn't have that capability... yet!)
standards = [('README', 'README.txt'), 'setup.py']
for fn in standards:
if type (fn) is TupleType:
@@ -253,7 +257,7 @@ class sdist (Command):
else:
self.warn ("standard file '%s' not found" % fn)
- optional = ['test/test*.py']
+ optional = ['test/test*.py', 'setup.cfg']
for pattern in optional:
files = filter (os.path.isfile, glob (pattern))
if files: