aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/command/easy_install.py
diff options
context:
space:
mode:
authorTarek Ziade <tarek@ziade.org>2010-04-07 10:00:46 +0200
committerTarek Ziade <tarek@ziade.org>2010-04-07 10:00:46 +0200
commit4331740bfbdc6e148808375c406dab795ae43d9b (patch)
tree7bbf64311ba82b225b0a45099479e8b68b5df0d4 /setuptools/command/easy_install.py
parent4da7cdd3ea61af90e56e0cbe63811b8ef13cd484 (diff)
downloadexternal_python_setuptools-4331740bfbdc6e148808375c406dab795ae43d9b.tar.gz
external_python_setuptools-4331740bfbdc6e148808375c406dab795ae43d9b.tar.bz2
external_python_setuptools-4331740bfbdc6e148808375c406dab795ae43d9b.zip
make sure we test that the directory exists before we install stuff asked by setup_requires fixes #138
--HG-- branch : distribute extra : rebase_source : 1078501b886e4f0864b4ce84517b2fbc5399da35
Diffstat (limited to 'setuptools/command/easy_install.py')
-rwxr-xr-xsetuptools/command/easy_install.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/setuptools/command/easy_install.py b/setuptools/command/easy_install.py
index 975f70e4..2d854755 100755
--- a/setuptools/command/easy_install.py
+++ b/setuptools/command/easy_install.py
@@ -462,7 +462,9 @@ Please make the appropriate changes for your system and try again.
ok_exists = os.path.exists(ok_file)
try:
if ok_exists: os.unlink(ok_file)
- os.makedirs(os.path.dirname(ok_file))
+ dirname = os.path.dirname(ok_file)
+ if not os.path.exists(dirname):
+ os.makedirs(dirname)
f = open(pth_file,'w')
except (OSError,IOError):
self.cant_write_to_target()