File setuptools-0.6c9-create-sitedir.patch of Package python3-setuptools

--- setuptools/command/easy_install.py	2014-10-19 03:58:49.000000000 -0700
+++ setuptools/command/easy_install.py.new	2014-11-04 12:05:16.300939810 -0800
@@ -411,6 +411,13 @@
         instdir = normalize_path(self.install_dir)
         pth_file = os.path.join(instdir, 'easy-install.pth')
 
+        # 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
 
openSUSE Build Service is sponsored by