Blame SOURCES/create-site-packages.patch

60623e
diff --git a/setuptools/command/easy_install.py b/setuptools/command/easy_install.py
60623e
index 91c48b3..0c9b0f4 100755
60623e
--- a/setuptools/command/easy_install.py
60623e
+++ b/setuptools/command/easy_install.py
60623e
@@ -446,6 +446,12 @@ class easy_install(Command):
60623e
         instdir = normalize_path(self.install_dir)
60623e
         pth_file = os.path.join(instdir, 'easy-install.pth')
60623e
 
60623e
+        if not os.path.exists(instdir):
60623e
+            try:
60623e
+                os.makedirs(instdir)
60623e
+            except (OSError, IOError):
60623e
+                self.cant_write_to_target()
60623e
+
60623e
         # Is it a configured, PYTHONPATH, implicit, or explicit site dir?
60623e
         is_site_dir = instdir in self.all_site_dirs
60623e