From b62a93ab0f8f3d442ee8e0155df7c8a9355816a7 Mon Sep 17 00:00:00 2001 From: Ricardo Gemignani Date: Thu, 6 Mar 2014 22:08:08 -0300 Subject: code commented and import moved so it won't run when python>2.5 --- setup.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'setup.py') diff --git a/setup.py b/setup.py index 9820c47..5352833 100644 --- a/setup.py +++ b/setup.py @@ -132,6 +132,9 @@ class MyInstallLib(install_lib.install_lib): exclude = set() shutil.rmtree(dest, ignore_errors=True) shutil.copytree(directory, dest) + # since python2.5's copytree doesn't support the ignore + # parameter, the following loop to remove the exclude set + # was added for (dirpath, dirnames, filenames) in os.walk(dest): for n in filenames: if n in exclude: -- cgit v1.2.1