aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/command/easy_install.py
diff options
context:
space:
mode:
authornibrahim <none@none>2010-02-22 18:17:37 -0500
committernibrahim <none@none>2010-02-22 18:17:37 -0500
commit2762c22f7a4dd3a288c04bb10af98605114bb08e (patch)
tree2c31fcc2bf4294e0b56517d15a90b45c555f3eb9 /setuptools/command/easy_install.py
parent16a89c229e8b67af66d6951bcd4146ea4bf091da (diff)
downloadexternal_python_setuptools-2762c22f7a4dd3a288c04bb10af98605114bb08e.tar.gz
external_python_setuptools-2762c22f7a4dd3a288c04bb10af98605114bb08e.tar.bz2
external_python_setuptools-2762c22f7a4dd3a288c04bb10af98605114bb08e.zip
Added an os.makedirs so that Tarek's solution will work
--HG-- branch : distribute extra : rebase_source : 91e7070818115d6ff2bcbf6db1912788e70b8d59
Diffstat (limited to 'setuptools/command/easy_install.py')
-rwxr-xr-xsetuptools/command/easy_install.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/setuptools/command/easy_install.py b/setuptools/command/easy_install.py
index 421d0c09..366ac7bc 100755
--- a/setuptools/command/easy_install.py
+++ b/setuptools/command/easy_install.py
@@ -9,7 +9,7 @@ file, or visit the `EasyInstall home page`__.
__ http://peak.telecommunity.com/DevCenter/EasyInstall
"""
-import sys, os.path, zipimport, shutil, tempfile, zipfile, re, stat, random
+import sys, os, os.path, zipimport, shutil, tempfile, zipfile, re, stat, random
from glob import glob
from setuptools import Command
from setuptools.sandbox import run_setup
@@ -360,6 +360,7 @@ 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))
f = open(pth_file,'w')
except (OSError,IOError):
self.cant_write_to_target()