[Catalog-sig] [Distutils] setuptools 0.6b4 released

Bob Ippolito bob at redivi.com
Thu Jul 13 06:09:20 CEST 2006


On Jul 12, 2006, at 9:00 PM, Bob Ippolito wrote:

>
> On Jul 11, 2006, at 12:12 PM, Phillip J. Eby wrote:
>
>> I have just released version 0.6b4 of setuptools, the last beta
>> release of
>> setuptools 0.6.  Please upgrade and test at your earliest
>> convenience, as I
>> would like to issue a release candidate version next week.
>
> It seems there's another bug in 0.6b4. I don't know what conditions
> cause it, however:
>
>    File "/Volumes/Data/developer-external/py2app/setuptools-0.6b4-
> py2.4.egg/setuptools/dist.py", line 274, in fetch_build_egg
> AttributeError: Distribution instance has no attribute
> 'dependency_links'
>
> It looks like there's no default for dependency_links in some cases..
> so that needs to change to a getattr, or it needs to set some default.

Ok, it seems this happens whenever you do develop, install, etc. when  
all dependencies aren't available. easy_install seems to work though.

This patch seems to make everything work as expected:

===================================================================
--- setuptools/dist.py  (revision 50587)
+++ setuptools/dist.py  (working copy)
@@ -271,7 +271,7 @@
              for key in opts.keys():
                  if key not in keep:
                      del opts[key]   # don't use any other settings
-            if self.dependency_links:
+            if getattr(self, 'dependency_links', None):
                  links = self.dependency_links[:]
                  if 'find_links' in opts:
                      links = opts['find_links'][1].split() + links


-bob



More information about the Catalog-sig mailing list