summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGreg Ward <gward@python.net>2000-06-29 23:09:20 (GMT)
committerGreg Ward <gward@python.net>2000-06-29 23:09:20 (GMT)
commit22e1bf7da556de6c14c1e3531db23ca2ff6d8fbb (patch)
treed661528d33498e2053eb2b8227205e1efad7f3ff /Lib
parent83c3870e2b3c1a652bdcdd8779ab8fc0f284f27d (diff)
downloadcpython-22e1bf7da556de6c14c1e3531db23ca2ff6d8fbb.zip
cpython-22e1bf7da556de6c14c1e3531db23ca2ff6d8fbb.tar.gz
cpython-22e1bf7da556de6c14c1e3531db23ca2ff6d8fbb.tar.bz2
Don't try to guess the name of a .def file -- if one is supplied, use it,
otherwise just generate an '/export:' option.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/distutils/command/build_ext.py6
1 files changed, 0 insertions, 6 deletions
diff --git a/Lib/distutils/command/build_ext.py b/Lib/distutils/command/build_ext.py
index 9bb7e77..4b5aaab 100644
--- a/Lib/distutils/command/build_ext.py
+++ b/Lib/distutils/command/build_ext.py
@@ -528,12 +528,6 @@ class build_ext (Command):
# kludges; they are to be avoided if possible!)
def_file = ext.export_symbol_file
- if def_file is None:
- source_dir = os.path.dirname (sources[0])
- ext_base = (string.split (ext.name, '.'))[-1]
- def_file = os.path.join (source_dir, "%s.def" % ext_base)
- if not os.path.exists (def_file):
- def_file = None
if def_file is not None:
extra_args.append ('/DEF:' + def_file)