Commit a35d1e3d authored by Georg Brandl's avatar Georg Brandl

#7973: Fix distutils options spelling.

parent ee526618
...@@ -176,7 +176,7 @@ easily specify multiple formats in one run. If you need to do both, you can ...@@ -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:: explicitly specify multiple :command:`bdist_\*` commands and their options::
python setup.py bdist_rpm --packager="John Doe <jdoe@example.org>" \ 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 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 Distutils is driven by the setup script. To make your life easier, the
......
...@@ -148,7 +148,7 @@ class bdist_msi(Command): ...@@ -148,7 +148,7 @@ class bdist_msi(Command):
if not self.skip_build and self.distribution.has_ext_modules()\ if not self.skip_build and self.distribution.has_ext_modules()\
and self.target_version != short_version: and self.target_version != short_version:
raise DistutilsOptionError( 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,)) " option must be specified" % (short_version,))
else: else:
self.versions = list(self.all_versions) self.versions = list(self.all_versions)
......
...@@ -89,7 +89,7 @@ class bdist_wininst(Command): ...@@ -89,7 +89,7 @@ class bdist_wininst(Command):
short_version = get_python_version() short_version = get_python_version()
if self.target_version and self.target_version != short_version: if self.target_version and self.target_version != short_version:
raise DistutilsOptionError( 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,)) " option must be specified" % (short_version,))
self.target_version = short_version self.target_version = short_version
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment