[Python-checkins] distutils2: make sure the dir exists in that case
tarek.ziade
python-checkins at python.org
Sun Jan 30 17:12:25 CET 2011
tarek.ziade pushed 22028f4d78bc to distutils2:
http://hg.python.org/distutils2/rev/22028f4d78bc
changeset: 985:22028f4d78bc
tag: tip
user: Tarek Ziade <tarek at ziade.org>
date: Sun Jan 30 17:12:16 2011 +0100
summary:
make sure the dir exists in that case
files:
distutils2/install.py
diff --git a/distutils2/install.py b/distutils2/install.py
--- a/distutils2/install.py
+++ b/distutils2/install.py
@@ -388,7 +388,8 @@
# removing the top path
# XXX count it ?
- shutil.rmtree(dist.path)
+ if os.path.exists(dist.path):
+ shutil.rmtree(dist.path)
logger.info('Success ! Removed %d files and %d dirs' % \
(file_count, dir_count))
--
Repository URL: http://hg.python.org/distutils2
More information about the Python-checkins
mailing list