diff options
author | Ricardo Gemignani <ricardo.gemignani@gmail.com> | 2014-03-06 03:08:25 -0300 |
---|---|---|
committer | Ricardo Gemignani <ricardo.gemignani@gmail.com> | 2014-03-06 03:08:25 -0300 |
commit | 554f49e7d75d1cbbee7567c577744222295eadd4 (patch) | |
tree | a2369910dd3141431fefd3b05ad2138ebfa6e789 /setup.py | |
parent | 8240a55ab1ccab81925197e0a196fcfd6eac5e2b (diff) | |
download | pylint-554f49e7d75d1cbbee7567c577744222295eadd4.tar.gz |
except as replaced by commas, one with_statement future import added and StringFormat used to replace string.format when python < 2.6
Diffstat (limited to 'setup.py')
-rw-r--r-- | setup.py | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -131,7 +131,12 @@ class MyInstallLib(install_lib.install_lib): else: exclude = set() shutil.rmtree(dest, ignore_errors=True) - shutil.copytree(directory, dest, ignore=lambda dir, names: list(set(names) & exclude)) + shutil.copytree(directory, dest) + for (dirpath, dirnames, filenames) in os.walk(dest): + for n in filenames: + if n in exclude: + os.remove(os.path.join(dirpath, n)) + if sys.version_info >= (3, 0): # process manually python file in include_dirs (test data) |