Sat Nov 15 12:04:20 MST 2008 zooko@zooko.com * try to mkdir the install directory This eases the common use case of "./setup.py install --prefix=somedir" and makes setuptools behave more like distutils in this case. diff -rN -u old-dw-0.6c9+zookopatches/setuptools/command/easy_install.py new-dw-0.6c9+zookopatches/setuptools/command/easy_install.py --- old-dw-0.6c9+zookopatches/setuptools/command/easy_install.py 2008-11-21 10:08:09.000000000 -0700 +++ new-dw-0.6c9+zookopatches/setuptools/command/easy_install.py 2008-11-21 10:08:09.000000000 -0700 @@ -249,6 +249,14 @@ instdir = normalize_path(self.install_dir) pth_file = os.path.join(instdir,'easy-install.pth') + # mkdir it if necessary + try: + os.makedirs(instdir) + except OSError: + # Oh well -- hopefully this error simply means that it is already there. + # If not the subsequent write test will identify the problem. + pass + # Is it a configured, PYTHONPATH, implicit, or explicit site dir? is_site_dir = instdir in self.all_site_dirs