summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGreg Ward <gward@python.net>2000-06-27 01:43:24 (GMT)
committerGreg Ward <gward@python.net>2000-06-27 01:43:24 (GMT)
commitb593793fce7853d8788254483dfbcf5f0f21bd27 (patch)
treeab09b3a3daede605d9d70cb08ed6afdb74826437 /Lib
parentf3bd747c4e36dd067de98dfc9c96ffb49a64d920 (diff)
downloadcpython-b593793fce7853d8788254483dfbcf5f0f21bd27.zip
cpython-b593793fce7853d8788254483dfbcf5f0f21bd27.tar.gz
cpython-b593793fce7853d8788254483dfbcf5f0f21bd27.tar.bz2
A-ha! Read Thomas' patch a little more carefully and figured it out:
the 'implib_dir' attribute is back (only on NT, of course).
Diffstat (limited to 'Lib')
-rw-r--r--Lib/distutils/command/build_ext.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/distutils/command/build_ext.py b/Lib/distutils/command/build_ext.py
index 106facc..f8aa91c 100644
--- a/Lib/distutils/command/build_ext.py
+++ b/Lib/distutils/command/build_ext.py
@@ -155,6 +155,7 @@ class build_ext (Command):
# also Python's library directory must be appended to library_dirs
if os.name == 'nt':
self.library_dirs.append (os.path.join(sys.exec_prefix, 'libs'))
+ self.implib_dir = self.build_temp
if self.debug:
self.build_temp = os.path.join (self.build_temp, "Debug")
else:
@@ -545,7 +546,7 @@ class build_ext (Command):
# directory. Since they have different names for debug and release
# builds, they can go into the same directory.
implib_file = os.path.join (
- self.build_temp,
+ self.implib_dir,
self.get_ext_libname (ext.name))
extra_args.append ('/IMPLIB:' + implib_file)
self.mkpath (os.path.dirname (implib_file))