Blame SOURCES/create-site-packages.patch

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