diff options
author | nibrahim <none@none> | 2010-02-22 18:17:37 -0500 |
---|---|---|
committer | nibrahim <none@none> | 2010-02-22 18:17:37 -0500 |
commit | 2762c22f7a4dd3a288c04bb10af98605114bb08e (patch) | |
tree | 2c31fcc2bf4294e0b56517d15a90b45c555f3eb9 | |
parent | 16a89c229e8b67af66d6951bcd4146ea4bf091da (diff) | |
download | external_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
-rw-r--r-- | CHANGES.txt | 1 | ||||
-rwxr-xr-x | setuptools/command/easy_install.py | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/CHANGES.txt b/CHANGES.txt index 7d1ff003..eeab73c6 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -11,6 +11,7 @@ CHANGES * Added indexsidebar.html into MANIFEST.in * Issue 108: Fixed TypeError with Python3.1 * Issue 121: Fixed --help install command trying to actually install. +* Issue 112: Added an os.makedirs so that Tarek's solution will work. ------ 0.6.10 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() |