summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/dist.py
diff options
context:
space:
mode:
authorGreg Ward <gward@python.net>2000-04-26 02:26:55 (GMT)
committerGreg Ward <gward@python.net>2000-04-26 02:26:55 (GMT)
commite5a584e86572a1ae85d99bc2a77b439d7024934f (patch)
treed87143f5fb6b2d92ab0759bf1b1e0b8beb7be2b2 /Lib/distutils/dist.py
parent839d532e50220ad75642c597df945e2688bf63ab (diff)
downloadcpython-e5a584e86572a1ae85d99bc2a77b439d7024934f.zip
cpython-e5a584e86572a1ae85d99bc2a77b439d7024934f.tar.gz
cpython-e5a584e86572a1ae85d99bc2a77b439d7024934f.tar.bz2
Harry Henry Gebel: add 'long_description' to DistributionMetadata.
Diffstat (limited to 'Lib/distutils/dist.py')
-rw-r--r--Lib/distutils/dist.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/Lib/distutils/dist.py b/Lib/distutils/dist.py
index 4a83c79..ae95009 100644
--- a/Lib/distutils/dist.py
+++ b/Lib/distutils/dist.py
@@ -89,6 +89,8 @@ class Distribution:
"alias for --licence"),
('description', None,
"print the package description"),
+ ('long-description', None,
+ "print the long package description"),
]
display_option_names = map(lambda x: string.translate(x[0], longopt_xlate),
display_options)
@@ -638,6 +640,7 @@ class DistributionMetadata:
self.url = None
self.licence = None
self.description = None
+ self.long_description = None
# -- Metadata query methods ----------------------------------------
@@ -680,7 +683,10 @@ class DistributionMetadata:
def get_description(self):
return self.description or "UNKNOWN"
-
+
+ def get_long_description(self):
+ return self.long_description or "UNKNOWN"
+
# class DistributionMetadata
if __name__ == "__main__":