summaryrefslogtreecommitdiffstats
path: root/Lib/distutils
diff options
context:
space:
mode:
authorGregory P. Smith <greg@mad-scientist.com>2000-05-13 01:35:33 (GMT)
committerGregory P. Smith <greg@mad-scientist.com>2000-05-13 01:35:33 (GMT)
commitde5c953a2b68c7ef87daf256a1527b5d99ded05f (patch)
tree89a33eadebddf362888f81f85eb01c19d7da1af0 /Lib/distutils
parent8f7f91fa2aa233abeb72b6a10a1b92b420c14fcb (diff)
downloadcpython-de5c953a2b68c7ef87daf256a1527b5d99ded05f.zip
cpython-de5c953a2b68c7ef87daf256a1527b5d99ded05f.tar.gz
cpython-de5c953a2b68c7ef87daf256a1527b5d99ded05f.tar.bz2
From Lyle Johnson: renamed 'implib_dir' to 'implib_file', and
correctly ensure that it's 'dirname' exists.
Diffstat (limited to 'Lib/distutils')
-rw-r--r--Lib/distutils/command/build_ext.py12
1 files changed, 5 insertions, 7 deletions
diff --git a/Lib/distutils/command/build_ext.py b/Lib/distutils/command/build_ext.py
index 2142d05..deb3b13 100644
--- a/Lib/distutils/command/build_ext.py
+++ b/Lib/distutils/command/build_ext.py
@@ -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)