]> granicus.if.org Git - python/commitdiff
Fixed test_distutils error (test_build_ext) on VC6.
authorHirokazu Yamamoto <ocean-city@m2.ccsnet.ne.jp>
Thu, 14 Aug 2008 05:50:43 +0000 (05:50 +0000)
committerHirokazu Yamamoto <ocean-city@m2.ccsnet.ne.jp>
Thu, 14 Aug 2008 05:50:43 +0000 (05:50 +0000)
Lib/distutils/command/build_ext.py

index beb33194693a5f921adf106774f9b78ad93b3c33..8cf7888117ccc056d73cc75bdd1193fa7e9ee468 100644 (file)
@@ -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