diff options
author | Tarek Ziadé <ziade.tarek@gmail.com> | 2008-12-30 23:09:20 +0000 |
---|---|---|
committer | Tarek Ziadé <ziade.tarek@gmail.com> | 2008-12-30 23:09:20 +0000 |
commit | 9df8ce3a8f2acb6c31a5f0b50015a9ba17d23823 (patch) | |
tree | 40b12bc656d5cc9733f6cb5c7f54201895b7d131 /Lib/distutils/msvc9compiler.py | |
parent | fce25a710480f34aeaeb36f1ab9fbdcaa66b502a (diff) | |
download | cpython-git-9df8ce3a8f2acb6c31a5f0b50015a9ba17d23823.tar.gz |
Merged revisions 68081 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r68081 | tarek.ziade | 2008-12-31 00:03:41 +0100 (Wed, 31 Dec 2008) | 1 line
Fixed #4702: Throwing DistutilsPlatformError instead of IOError under win32 if MSVC is not found
........
Diffstat (limited to 'Lib/distutils/msvc9compiler.py')
-rw-r--r-- | Lib/distutils/msvc9compiler.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/distutils/msvc9compiler.py b/Lib/distutils/msvc9compiler.py index eced0524b8..aae0637394 100644 --- a/Lib/distutils/msvc9compiler.py +++ b/Lib/distutils/msvc9compiler.py @@ -247,7 +247,7 @@ def query_vcvarsall(version, arch="x86"): result = {} if vcvarsall is None: - raise IOError("Unable to find vcvarsall.bat") + raise DistutilsPlatformError("Unable to find vcvarsall.bat") log.debug("Calling 'vcvarsall.bat %s' (version=%s)", arch, version) popen = subprocess.Popen('"%s" %s & set' % (vcvarsall, arch), stdout=subprocess.PIPE, @@ -255,7 +255,7 @@ def query_vcvarsall(version, arch="x86"): stdout, stderr = popen.communicate() if popen.wait() != 0: - raise IOError(stderr.decode("mbcs")) + raise DistutilsPlatformError(stderr.decode("mbcs")) stdout = stdout.decode("mbcs") for line in stdout.split("\n"): |