summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/command/sdist.py
diff options
context:
space:
mode:
authorGreg Ward <gward@python.net>2000-04-21 04:37:12 (GMT)
committerGreg Ward <gward@python.net>2000-04-21 04:37:12 (GMT)
commit535f2d9ace100ce354630d1f26d1c45644970364 (patch)
tree5ce8e0738af147c8f48e56f7e55c905a9cedadaa /Lib/distutils/command/sdist.py
parent87da1ea1271c3070bcb37348ac3ae508b62ce56b (diff)
downloadcpython-535f2d9ace100ce354630d1f26d1c45644970364.zip
cpython-535f2d9ace100ce354630d1f26d1c45644970364.tar.gz
cpython-535f2d9ace100ce354630d1f26d1c45644970364.tar.bz2
Fix 'check_metadata()' so it grovels through the distribution's metadata
object, rather than through the distribution itself (since I moved the meta- data out to a DistributionMetadata instance).
Diffstat (limited to 'Lib/distutils/command/sdist.py')
-rw-r--r--Lib/distutils/command/sdist.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/Lib/distutils/command/sdist.py b/Lib/distutils/command/sdist.py
index 59dd624..43007d5 100644
--- a/Lib/distutils/command/sdist.py
+++ b/Lib/distutils/command/sdist.py
@@ -107,23 +107,23 @@ class sdist (Command):
def check_metadata (self):
- dist = self.distribution
+ metadata = self.distribution.metadata
missing = []
for attr in ('name', 'version', 'url'):
- if not (hasattr (dist, attr) and getattr (dist, attr)):
+ if not (hasattr (metadata, attr) and getattr (metadata, attr)):
missing.append (attr)
if missing:
self.warn ("missing required meta-data: " +
string.join (missing, ", "))
- if dist.author:
- if not dist.author_email:
+ if metadata.author:
+ if not metadata.author_email:
self.warn ("missing meta-data: if 'author' supplied, " +
"'author_email' must be supplied too")
- elif dist.maintainer:
- if not dist.maintainer_email:
+ elif metadata.maintainer:
+ if not metadata.maintainer_email:
self.warn ("missing meta-data: if 'maintainer' supplied, " +
"'maintainer_email' must be supplied too")
else: