From: Hirokazu Yamamoto Date: Thu, 14 Aug 2008 05:50:43 +0000 (+0000) Subject: Fixed test_distutils error (test_build_ext) on VC6. X-Git-Tag: v2.6b3~89 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=41a4f4631bd33ff346820d3f5e0d5b068fa98d50;p=thirdparty%2FPython%2Fcpython.git Fixed test_distutils error (test_build_ext) on VC6. --- diff --git a/Lib/distutils/command/build_ext.py b/Lib/distutils/command/build_ext.py index beb33194693a..8cf7888117cc 100644 --- a/Lib/distutils/command/build_ext.py +++ b/Lib/distutils/command/build_ext.py @@ -209,9 +209,12 @@ class build_ext (Command): elif MSVC_VERSION == 8: self.library_dirs.append(os.path.join(sys.exec_prefix, 'PC', 'VS8.0', 'win32release')) - else: + elif MSVC_VERSION == 7: self.library_dirs.append(os.path.join(sys.exec_prefix, 'PC', 'VS7.1')) + else: + self.library_dirs.append(os.path.join(sys.exec_prefix, + 'PC', 'VC6')) # OS/2 (EMX) doesn't support Debug vs Release builds, but has the # import libraries in its "Config" subdirectory