diff options
author | Greg Ward <gward@python.net> | 2000-02-08 02:37:15 (GMT) |
---|---|---|
committer | Greg Ward <gward@python.net> | 2000-02-08 02:37:15 (GMT) |
commit | f0219ba29070c615d4c7ef323f16c2e008d53d24 (patch) | |
tree | 066aeb175a569790b0493933d1c8eefdd6a2c331 | |
parent | da8d216eb2abc65e0628ac59e300ccc331338151 (diff) | |
download | cpython-f0219ba29070c615d4c7ef323f16c2e008d53d24.zip cpython-f0219ba29070c615d4c7ef323f16c2e008d53d24.tar.gz cpython-f0219ba29070c615d4c7ef323f16c2e008d53d24.tar.bz2 |
Ditch .def file kludge for (much smaller) /export option kludge.
-rw-r--r-- | Lib/distutils/command/build_ext.py | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/Lib/distutils/command/build_ext.py b/Lib/distutils/command/build_ext.py index b253c55..0f2d1a7 100644 --- a/Lib/distutils/command/build_ext.py +++ b/Lib/distutils/command/build_ext.py @@ -236,18 +236,7 @@ class BuildExt (Command): library_dirs = build_info.get ('library_dirs') extra_args = build_info.get ('extra_link_args') or [] if self.compiler.compiler_type == 'msvc': - def_file = build_info.get ('def_file') - if def_file is None: - source_dir = os.path.dirname (sources[0]) - ext_base = (string.split (extension_name, '.'))[-1] - def_file = os.path.join (source_dir, "%s.def" % ext_base) - if not os.path.exists (def_file): - self.warn ("file '%s' not found: " % def_file + - "might have problems building DLL") - def_file = None - - if def_file is not None: - extra_args.append ('/DEF:' + def_file) + extra_args.append ('/export:init%s' % extension_name) ext_filename = self.extension_filename \ (extension_name, self.package) |