Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b593793

Browse files
committed
A-ha! Read Thomas' patch a little more carefully and figured it out:
the 'implib_dir' attribute is back (only on NT, of course).
1 parent f3bd747 commit b593793

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Lib/distutils/command/build_ext.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ def finalize_options (self):
155155
# also Python's library directory must be appended to library_dirs
156156
if os.name == 'nt':
157157
self.library_dirs.append (os.path.join(sys.exec_prefix, 'libs'))
158+
self.implib_dir = self.build_temp
158159
if self.debug:
159160
self.build_temp = os.path.join (self.build_temp, "Debug")
160161
else:
@@ -545,7 +546,7 @@ def msvc_prelink_hack (self, sources, ext, extra_args):
545546
# directory. Since they have different names for debug and release
546547
# builds, they can go into the same directory.
547548
implib_file = os.path.join (
548-
self.build_temp,
549+
self.implib_dir,
549550
self.get_ext_libname (ext.name))
550551
extra_args.append ('/IMPLIB:' + implib_file)
551552
self.mkpath (os.path.dirname (implib_file))

0 commit comments

Comments
 (0)