[Distutils] setuptools 0.5a5: "develop" and "test" commands

Ryan Tomayko rtomayko at gmail.com
Wed Jul 6 08:05:06 CEST 2005


On Jul 6, 2005, at 12:19 AM, Phillip J. Eby wrote:
> There were a couple of other important changes in this release;
> easy_install the *module* is now found under setuptools.command;

This is breaking setuptools upgrades using ez_setup.py. If you run  
the latest ez_setup.py on a system that has a previous version of  
setuptools installed, you get an ImportError:

     Traceback (most recent call last):
       File "ez_setup.py", line 160, in ?
         main(sys.argv[1:])
       File "ez_setup.py", line 149, in main
         from setuptools.command.easy_install import main
     ImportError: No module named easy_install

I was able to get around it with the following patch:

$ diff ez_setup.py{.orig,}
149c149,152
<         from setuptools.command.easy_install import main
---
 >         try:
 >             from setuptools.command.easy_install import main
 >         except ImportError:
 >             from easy_install import main

Ryan Tomayko
                                  rtomayko at gmail.com
                                  http://naeblis.cx/rtomayko/




More information about the Distutils-SIG mailing list