diff --git a/build.py b/build.py index 77f20921..72d7851c 100755 --- a/build.py +++ b/build.py @@ -1337,7 +1337,7 @@ def cmd_build_py(options, args): WX_CONFIG = 'wx-config' # hope it is on the PATH - wafBuildBase = wafBuildDir = getWafBuildBase() + wafBuildBase = wafBuildDir = getWafBuildBase() if isWindows: wafBuildDir = posixjoin(wafBuildBase, 'release') @@ -1531,7 +1531,6 @@ def cmd_clean_wx(options, args): if options.both: options.debug = True msw = getMSWSettings(options) - cfg = Config() deleteIfExists(opj(msw.dllDir, 'msw'+msw.dll_type)) delFiles(glob.glob(opj(msw.dllDir, 'wx*%s%s*' % (version2_nodot, msw.dll_type)))) delFiles(glob.glob(opj(msw.dllDir, 'wx*%s%s*' % (version3_nodot, msw.dll_type)))) @@ -1690,7 +1689,7 @@ def cmd_sdist(options, args): copyFile(name, destdir) # Also add the waf executable - waf = getWafCmd() + getWafCmd() copyFile('bin/waf-%s' % wafCurrentVersion, os.path.join(PDEST, 'bin')) # and the REV.txt if there is one diff --git a/setup.py b/setup.py index 09a939f6..8117fcb0 100644 --- a/setup.py +++ b/setup.py @@ -265,7 +265,6 @@ def wx_copy_file(src, dst, preserve_mode=1, preserve_times=1, update=0, else: # make a new, matching symlink in dst if os.path.isdir(dst): - dir = dst dst = os.path.join(dst, os.path.basename(src)) linkdst = os.readlink(src) if verbose >= 1: