Commit b78e9f55 authored by PJ Eby's avatar PJ Eby

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
parent b0e7e11b
......@@ -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'):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment