summaryrefslogtreecommitdiff
path: root/cygwinccompiler.py
diff options
context:
space:
mode:
authorJeremy Hylton <jeremy@alum.mit.edu>2002-06-04 20:26:44 +0000
committerJeremy Hylton <jeremy@alum.mit.edu>2002-06-04 20:26:44 +0000
commitc3296eab8b1919b8f4c3fcdbfbd34deca6a22040 (patch)
treed3b8e32bf911f4aab97e0e1c22e3e519c8312f3e /cygwinccompiler.py
parentae4a1269c661b5fb842d7d18911d5a0c19ded7dc (diff)
downloadpython-setuptools-git-c3296eab8b1919b8f4c3fcdbfbd34deca6a22040.tar.gz
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 'cygwinccompiler.py')
-rw-r--r--cygwinccompiler.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/cygwinccompiler.py b/cygwinccompiler.py
index 3fb5bc90..443c9bcf 100644
--- a/cygwinccompiler.py
+++ b/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