From b78e9f559ebb39143151179e78325a84c51d7988 Mon Sep 17 00:00:00 2001 From: PJ Eby Date: Sat, 3 Sep 2005 04:37:18 +0000 Subject: Make sure that script target directory exists. Ordinarily it should, but some bdist_* targets install to a pseudo-root where stuff might not exist. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041236 --- setuptools/command/easy_install.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'setuptools/command') diff --git a/setuptools/command/easy_install.py b/setuptools/command/easy_install.py index 9ae32770..75aca8f9 100755 --- a/setuptools/command/easy_install.py +++ b/setuptools/command/easy_install.py @@ -481,6 +481,7 @@ class easy_install(Command): ) % locals() if not self.dry_run: + ensure_directory(target) f = open(target,"w") f.write(script_text) f.close() @@ -489,7 +490,6 @@ class easy_install(Command): except (AttributeError, os.error): pass - def install_eggs(self, spec, dist_filename, tmpdir): # .egg dirs or files are already built, so just return them if dist_filename.lower().endswith('.egg'): -- cgit v1.2.1