]> granicus.if.org Git - python/commitdiff
#7973: Fix distutils options spelling.
authorGeorg Brandl <georg@python.org>
Mon, 2 Aug 2010 19:16:34 +0000 (19:16 +0000)
committerGeorg Brandl <georg@python.org>
Mon, 2 Aug 2010 19:16:34 +0000 (19:16 +0000)
Doc/distutils/builtdist.rst
Lib/distutils/command/bdist_msi.py
Lib/distutils/command/bdist_wininst.py

index d3c067b3c38e76d6de6efca72aa99da3025a27a0..581f0f6a559038b7da8572bd473df3addd79c284 100644 (file)
@@ -176,7 +176,7 @@ easily specify multiple formats in one run.  If you need to do both, you can
 explicitly specify multiple :command:`bdist_\*` commands and their options::
 
    python setup.py bdist_rpm --packager="John Doe <jdoe@example.org>" \
-                   bdist_wininst --target_version="2.0"
+                   bdist_wininst --target-version="2.0"
 
 Creating RPM packages is driven by a :file:`.spec` file, much as using the
 Distutils is driven by the setup script.  To make your life easier, the
index c4be47b579e59e8aaaef8205fa7f75a29a595c61..8a458d853696fe2d4e2b9711147b0b48553f09b3 100644 (file)
@@ -148,7 +148,7 @@ class bdist_msi(Command):
             if not self.skip_build and self.distribution.has_ext_modules()\
                and self.target_version != short_version:
                 raise DistutilsOptionError(
-                      "target version can only be %s, or the '--skip_build'"
+                      "target version can only be %s, or the '--skip-build'"
                       " option must be specified" % (short_version,))
         else:
             self.versions = list(self.all_versions)
index d6d01c630d44228124c332e2128a28163028fc85..3aa1dac7f3867a4ec18e2fa1e9bd44744e878984 100644 (file)
@@ -89,7 +89,7 @@ class bdist_wininst(Command):
             short_version = get_python_version()
             if self.target_version and self.target_version != short_version:
                 raise DistutilsOptionError(
-                      "target version can only be %s, or the '--skip_build'" \
+                      "target version can only be %s, or the '--skip-build'" \
                       " option must be specified" % (short_version,))
             self.target_version = short_version