summaryrefslogtreecommitdiffstats
path: root/Lib/distutils
diff options
context:
space:
mode:
authorGreg Ward <gward@python.net>2000-05-09 01:50:41 (GMT)
committerGreg Ward <gward@python.net>2000-05-09 01:50:41 (GMT)
commit1500374667bf2b1e882ec8ba7db5a8c546e187fd (patch)
tree32c1e8180e13a87e0ad7f42d964f9e976b998f96 /Lib/distutils
parent5879a533f163123f2639794b36f94946855ee284 (diff)
downloadcpython-1500374667bf2b1e882ec8ba7db5a8c546e187fd.zip
cpython-1500374667bf2b1e882ec8ba7db5a8c546e187fd.tar.gz
cpython-1500374667bf2b1e882ec8ba7db5a8c546e187fd.tar.bz2
Added comment about the MSVC-specific kludge.
Diffstat (limited to 'Lib/distutils')
-rw-r--r--Lib/distutils/command/build_ext.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/Lib/distutils/command/build_ext.py b/Lib/distutils/command/build_ext.py
index a430c2b..b234b91 100644
--- a/Lib/distutils/command/build_ext.py
+++ b/Lib/distutils/command/build_ext.py
@@ -308,6 +308,16 @@ class build_ext (Command):
rpath = build_info.get ('rpath')
extra_args = build_info.get ('extra_link_args') or []
+ # XXX this is a kludge! Knowledge of specific compilers or
+ # platforms really doesn't belong here; in an ideal world, the
+ # CCompiler interface would provide access to everything in a
+ # compiler/linker system needs to build Python extensions, and
+ # we would just do everything nicely and cleanly through that
+ # interface. However, this is a not an ideal world and the
+ # CCompiler interface doesn't handle absolutely everything.
+ # Thus, kludges like this slip in occasionally. (This is no
+ # excuse for committing more platform- and compiler-specific
+ # kludges; they are to be avoided if possible!)
if self.compiler.compiler_type == 'msvc':
def_file = build_info.get ('def_file')
if def_file is None: