summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/cygwinccompiler.py
diff options
context:
space:
mode:
authorJeremy Hylton <jeremy@alum.mit.edu>2002-06-04 20:26:44 (GMT)
committerJeremy Hylton <jeremy@alum.mit.edu>2002-06-04 20:26:44 (GMT)
commita2f9989c1a5451253d1e6e8508af422363c7e113 (patch)
tree01836feb7f7de4b1cf1ee3e5540931afa7911bbe /Lib/distutils/cygwinccompiler.py
parenta181ec07af8f0ab34d17be777d65935189df5054 (diff)
downloadcpython-a2f9989c1a5451253d1e6e8508af422363c7e113.zip
cpython-a2f9989c1a5451253d1e6e8508af422363c7e113.tar.gz
cpython-a2f9989c1a5451253d1e6e8508af422363c7e113.tar.bz2
Fix unused local variables caught by pychecker.
Fixes a bug for Solaris pkgtool (bdist_pkgtool) that would have prevented it from building subpackages.
Diffstat (limited to 'Lib/distutils/cygwinccompiler.py')
-rw-r--r--Lib/distutils/cygwinccompiler.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/Lib/distutils/cygwinccompiler.py b/Lib/distutils/cygwinccompiler.py
index 3fb5bc9..443c9bc 100644
--- a/Lib/distutils/cygwinccompiler.py
+++ b/Lib/distutils/cygwinccompiler.py
@@ -213,7 +213,6 @@ class CygwinCCompiler (UnixCCompiler):
# generate the filenames for these files
def_file = os.path.join(temp_dir, dll_name + ".def")
- exp_file = os.path.join(temp_dir, dll_name + ".exp")
lib_file = os.path.join(temp_dir, 'lib' + dll_name + ".a")
# Generate .def file
@@ -229,16 +228,14 @@ class CygwinCCompiler (UnixCCompiler):
# dllwrap uses different options than gcc/ld
if self.linker_dll == "dllwrap":
- extra_preargs.extend([#"--output-exp",exp_file,
- "--output-lib",lib_file,
- ])
+ extra_preargs.extend(["--output-lib", lib_file])
# for dllwrap we have to use a special option
extra_preargs.extend(["--def", def_file])
# we use gcc/ld here and can be sure ld is >= 2.9.10
else:
# doesn't work: bfd_close build\...\libfoo.a: Invalid operation
#extra_preargs.extend(["-Wl,--out-implib,%s" % lib_file])
- # for gcc/ld the def-file is specified as any other object files
+ # for gcc/ld the def-file is specified as any object files
objects.append(def_file)
#end: if ((export_symbols is not None) and