From b593793fce7853d8788254483dfbcf5f0f21bd27 Mon Sep 17 00:00:00 2001 From: Greg Ward Date: Tue, 27 Jun 2000 01:43:24 +0000 Subject: [PATCH] A-ha! Read Thomas' patch a little more carefully and figured it out: the 'implib_dir' attribute is back (only on NT, of course). --- Lib/distutils/command/build_ext.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Lib/distutils/command/build_ext.py b/Lib/distutils/command/build_ext.py index 106faccb284..f8aa91cae34 100644 --- a/Lib/distutils/command/build_ext.py +++ b/Lib/distutils/command/build_ext.py @@ -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))