]> granicus.if.org Git - python/commitdiff
From Lyle Johnson: renamed 'implib_dir' to 'implib_file', and
authorGregory P. Smith <greg@mad-scientist.com>
Sat, 13 May 2000 01:35:33 +0000 (01:35 +0000)
committerGregory P. Smith <greg@mad-scientist.com>
Sat, 13 May 2000 01:35:33 +0000 (01:35 +0000)
correctly ensure that it's 'dirname' exists.

Lib/distutils/command/build_ext.py

index 2142d05fdc30253dbbfb1888d6096343138fdc40..deb3b130b9871f46d763de68499b167012040339 100644 (file)
@@ -342,13 +342,11 @@ class build_ext (Command):
                 # which cannot be suppressed by any linker switches.  So
                 # make sure they are generated in the temporary build
                 # directory.
-                implib_dir = os.path.join(self.build_temp,\
-                                          self.get_ext_libname(extension_name))
-                extra_args.append ('/IMPLIB:' + implib_dir)
-
-                # XXX arg, which of these is correct?
-                self.mkpath(implib_dir)
-                self.mkpath(os.path.dirname(implib_dir))
+                implib_file = os.path.join (
+                    self.build_temp,
+                    self.get_ext_libname (extension_name))
+                extra_args.append ('/IMPLIB:' + implib_file)
+                self.mkpath (os.path.dirname (implib_file))
             # if MSVC
 
             fullname = self.get_ext_fullname (extension_name)