2015-04-07 01:29:51 +02:00
|
|
|
Index: setuptools-15.0/setuptools/command/easy_install.py
|
2014-07-23 23:24:25 +02:00
|
|
|
===================================================================
|
2015-04-07 01:29:51 +02:00
|
|
|
--- setuptools-15.0.orig/setuptools/command/easy_install.py
|
|
|
|
+++ setuptools-15.0/setuptools/command/easy_install.py
|
|
|
|
@@ -415,6 +415,13 @@ class easy_install(Command):
|
2009-03-30 14:02:40 +02:00
|
|
|
instdir = normalize_path(self.install_dir)
|
2014-07-23 23:24:25 +02:00
|
|
|
pth_file = os.path.join(instdir, 'easy-install.pth')
|
2009-03-30 14:02:40 +02:00
|
|
|
|
|
|
|
+ # make sure that the directory exists
|
|
|
|
+ if not os.path.exists(instdir):
|
|
|
|
+ try:
|
|
|
|
+ os.makedirs(instdir)
|
|
|
|
+ except (OSError,IOError):
|
|
|
|
+ self.cant_write_to_target()
|
|
|
|
+
|
|
|
|
# Is it a configured, PYTHONPATH, implicit, or explicit site dir?
|
|
|
|
is_site_dir = instdir in self.all_site_dirs
|
|
|
|
|