Skip to content

Commit de5c953

Browse files
committed
From Lyle Johnson: renamed 'implib_dir' to 'implib_file', and
correctly ensure that it's 'dirname' exists.
1 parent 8f7f91f commit de5c953

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

Lib/distutils/command/build_ext.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -342,13 +342,11 @@ def build_extensions (self):
342342
# which cannot be suppressed by any linker switches. So
343343
# make sure they are generated in the temporary build
344344
# directory.
345-
implib_dir = os.path.join(self.build_temp,\
346-
self.get_ext_libname(extension_name))
347-
extra_args.append ('/IMPLIB:' + implib_dir)
348-
349-
# XXX arg, which of these is correct?
350-
self.mkpath(implib_dir)
351-
self.mkpath(os.path.dirname(implib_dir))
345+
implib_file = os.path.join (
346+
self.build_temp,
347+
self.get_ext_libname (extension_name))
348+
extra_args.append ('/IMPLIB:' + implib_file)
349+
self.mkpath (os.path.dirname (implib_file))
352350
# if MSVC
353351

354352
fullname = self.get_ext_fullname (extension_name)

0 commit comments

Comments
 (0)