]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Fix SF#983164.
authorThomas Heller <theller@ctypes.org>
Tue, 6 Jul 2004 19:23:27 +0000 (19:23 +0000)
committerThomas Heller <theller@ctypes.org>
Tue, 6 Jul 2004 19:23:27 +0000 (19:23 +0000)
commita146feaa10f2f18a89a3fa21d04579b5c2bf6969
treeceffde5ecf1767507846e019b7aa5c02ae9e592a
parent5124b4a082552225f3c54fedb6836fbb1613e170
Fix SF#983164.

Patch from Mark Hammond:

bdist_wininst attempts to use the correct MSVC runtime for the current
version of Python. This doesn't work correctly when --target-version
is set. In that case, bdist_wininst still uses the *current*
sys.version (ie, 2.4) rather than the version specified as
--target-version. Thus, the msvc7 runtime based executable stub is
*always* used.

This patch "hard-codes" knowledge of earlier Python versions,
providing the correct result when Python 2.4 is used to build Python
2.3 and earlier distributions.

Remove the short variant (-v) of the --target-version command line
options, it conflicts with the --verbose/-v standard distutils switch.
Lib/distutils/command/bdist_wininst.py