mirror of https://github.com/python/cpython
A-ha! Read Thomas' patch a little more carefully and figured it out:
the 'implib_dir' attribute is back (only on NT, of course).
This commit is contained in:
parent
f3bd747c4e
commit
b593793fce
|
@ -155,6 +155,7 @@ class build_ext (Command):
|
||||||
# also Python's library directory must be appended to library_dirs
|
# also Python's library directory must be appended to library_dirs
|
||||||
if os.name == 'nt':
|
if os.name == 'nt':
|
||||||
self.library_dirs.append (os.path.join(sys.exec_prefix, 'libs'))
|
self.library_dirs.append (os.path.join(sys.exec_prefix, 'libs'))
|
||||||
|
self.implib_dir = self.build_temp
|
||||||
if self.debug:
|
if self.debug:
|
||||||
self.build_temp = os.path.join (self.build_temp, "Debug")
|
self.build_temp = os.path.join (self.build_temp, "Debug")
|
||||||
else:
|
else:
|
||||||
|
@ -545,7 +546,7 @@ class build_ext (Command):
|
||||||
# directory. Since they have different names for debug and release
|
# directory. Since they have different names for debug and release
|
||||||
# builds, they can go into the same directory.
|
# builds, they can go into the same directory.
|
||||||
implib_file = os.path.join (
|
implib_file = os.path.join (
|
||||||
self.build_temp,
|
self.implib_dir,
|
||||||
self.get_ext_libname (ext.name))
|
self.get_ext_libname (ext.name))
|
||||||
extra_args.append ('/IMPLIB:' + implib_file)
|
extra_args.append ('/IMPLIB:' + implib_file)
|
||||||
self.mkpath (os.path.dirname (implib_file))
|
self.mkpath (os.path.dirname (implib_file))
|
||||||
|
|
Loading…
Reference in New Issue