[Python-checkins] distutils2: Make option lists respect style used in other commands
tarek.ziade
python-checkins at python.org
Sun Aug 8 11:50:48 CEST 2010
tarek.ziade pushed 10a8c03c822f to distutils2:
http://hg.python.org/distutils2/rev/10a8c03c822f
changeset: 510:10a8c03c822f
user: ?ric Araujo <merwok at netwok.org>
date: Sat Aug 07 17:52:41 2010 +0200
summary: Make option lists respect style used in other commands
files: src/distutils2/command/install.py, src/distutils2/command/install_distinfo.py
diff --git a/src/distutils2/command/install.py b/src/distutils2/command/install.py
--- a/src/distutils2/command/install.py
+++ b/src/distutils2/command/install.py
@@ -83,11 +83,16 @@
"(not PEP 376-compliant)"),
# .dist-info related arguments, read by install_dist_info
- ('no-distinfo', None, 'do not create a .dist-info directory'),
- ('installer=', None, 'the name of the installer'),
- ('requested', None, 'generate a REQUESTED file'),
- ('no-requested', None, 'do not generate a REQUESTED file'),
- ('no-record', None, 'do not generate a RECORD file'),
+ ('no-distinfo', None,
+ "do not create a .dist-info directory"),
+ ('installer=', None,
+ "the name of the installer"),
+ ('requested', None,
+ "generate a REQUESTED file (i.e."),
+ ('no-requested', None,
+ "do not generate a REQUESTED file"),
+ ('no-record', None,
+ "do not generate a RECORD file"),
]
boolean_options = ['compile', 'force', 'skip-build', 'no-distinfo',
diff --git a/src/distutils2/command/install_distinfo.py b/src/distutils2/command/install_distinfo.py
--- a/src/distutils2/command/install_distinfo.py
+++ b/src/distutils2/command/install_distinfo.py
@@ -31,18 +31,18 @@
user_options = [
('distinfo-dir=', None,
- 'directory where the the .dist-info directory will '
- 'be installed'),
- ('installer=', None, 'the name of the installer'),
- ('requested', None, 'generate a REQUESTED file'),
- ('no-requested', None, 'do not generate a REQUESTED file'),
- ('no-record', None, 'do not generate a RECORD file'),
+ "directory where the the .dist-info directory will be installed"),
+ ('installer=', None,
+ "the name of the installer"),
+ ('requested', None,
+ "generate a REQUESTED file"),
+ ('no-requested', None,
+ "do not generate a REQUESTED file"),
+ ('no-record', None,
+ "do not generate a RECORD file"),
]
- boolean_options = [
- 'requested',
- 'no-record',
- ]
+ boolean_options = ['requested', 'no-record']
negative_opt = {'no-requested': 'requested'}
--
Repository URL: http://hg.python.org/distutils2
More information about the Python-checkins
mailing list