mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
From Lyle Johnson: renamed 'implib_dir' to 'implib_file', and
correctly ensure that it's 'dirname' exists.
This commit is contained in:
parent
8f7f91fa2a
commit
de5c953a2b
1 changed files with 5 additions and 7 deletions
|
@ -342,13 +342,11 @@ class build_ext (Command):
|
||||||
# which cannot be suppressed by any linker switches. So
|
# which cannot be suppressed by any linker switches. So
|
||||||
# make sure they are generated in the temporary build
|
# make sure they are generated in the temporary build
|
||||||
# directory.
|
# directory.
|
||||||
implib_dir = os.path.join(self.build_temp,\
|
implib_file = os.path.join (
|
||||||
|
self.build_temp,
|
||||||
self.get_ext_libname (extension_name))
|
self.get_ext_libname (extension_name))
|
||||||
extra_args.append ('/IMPLIB:' + implib_dir)
|
extra_args.append ('/IMPLIB:' + implib_file)
|
||||||
|
self.mkpath (os.path.dirname (implib_file))
|
||||||
# XXX arg, which of these is correct?
|
|
||||||
self.mkpath(implib_dir)
|
|
||||||
self.mkpath(os.path.dirname(implib_dir))
|
|
||||||
# if MSVC
|
# if MSVC
|
||||||
|
|
||||||
fullname = self.get_ext_fullname (extension_name)
|
fullname = self.get_ext_fullname (extension_name)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue