]> granicus.if.org Git - python/commitdiff
A-ha! Read Thomas' patch a little more carefully and figured it out:
authorGreg Ward <gward@python.net>
Tue, 27 Jun 2000 01:43:24 +0000 (01:43 +0000)
committerGreg Ward <gward@python.net>
Tue, 27 Jun 2000 01:43:24 +0000 (01:43 +0000)
the 'implib_dir' attribute is back (only on NT, of course).

Lib/distutils/command/build_ext.py

index 106faccb2842c546ca9dfd58be76b4983748e9ae..f8aa91cae34dcdffe6da0ddaca3986d5bc7adf29 100644 (file)
@@ -155,6 +155,7 @@ class build_ext (Command):
         # also Python's library directory must be appended to library_dirs
         if os.name == 'nt':
             self.library_dirs.append (os.path.join(sys.exec_prefix, 'libs'))
+            self.implib_dir = self.build_temp
             if self.debug:
                 self.build_temp = os.path.join (self.build_temp, "Debug")
             else:
@@ -545,7 +546,7 @@ class build_ext (Command):
         # directory. Since they have different names for debug and release
         # builds, they can go into the same directory.
         implib_file = os.path.join (
-            self.build_temp,
+            self.implib_dir,
             self.get_ext_libname (ext.name))
         extra_args.append ('/IMPLIB:' + implib_file)
         self.mkpath (os.path.dirname (implib_file))