[Distutils] setuptools 0.5a5: "develop" and "test" commands
Phillip J. Eby
pje at telecommunity.com
Wed Jul 6 08:29:56 CEST 2005
At 02:05 AM 7/6/2005 -0400, Ryan Tomayko wrote:
>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
Okay, I updated the download for that. Luckily, ez_setup isn't versioned
or included in the main setuptools package, so it didn't necessitate a new
release version.
Testing EasyInstall and friends is currently a pain because there's no
clean way to unit test most distutils commands. I'm really going to have
to extend the OS sandbox code I wrote so it can do a virtual filesystem for
testing purposes.
More information about the Distutils-SIG
mailing list