]> granicus.if.org Git - python/commitdiff
Don't try to guess the name of a .def file -- if one is supplied, use it,
authorGreg Ward <gward@python.net>
Thu, 29 Jun 2000 23:09:20 +0000 (23:09 +0000)
committerGreg Ward <gward@python.net>
Thu, 29 Jun 2000 23:09:20 +0000 (23:09 +0000)
otherwise just generate an '/export:' option.

Lib/distutils/command/build_ext.py

index 9bb7e770011f2d4d21c3aec89e81127c195f5753..4b5aaab8ef4735412b549908c23d785676586a78 100644 (file)
@@ -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)