[Python-Dev] CVS tree doesn't build currently
Tim Peters
tim.one@home.com
Mon, 3 Sep 2001 15:57:24 -0400
[Jack Jansen]
> I can't build from the CVS tree right now (confirmed on Irix and OSX):
> setup.py crashes. Here's the stacktrace:
>
> CC='cc' LDSHARED='ld -shared -all' ./python -E ./setup.py build
> Traceback (most recent call last):
> File "./setup.py", line 708, in ?
> main()
> File "./setup.py", line 702, in main
> scripts = ['Tools/scripts/pydoc']
> File "/ufs/jack/src/python/Lib/distutils/core.py", line 101, in setup
> _setup_distribution = dist = klass(attrs)
> File"/ufs/jack/src/python/Lib/distutils/dist.py", line 129, in __init__
> setattr(self, method_name, getattr(self.metadata, method_name))
> AttributeError: DistributionMetadata instance has no attribute
> 'get___doc__'
Unless I miss my bet, Neil fixed this now, and it was due to that
dir(instance) now returns the attributes of instance.__class__ in addition
to the keys in instance.__dict__. Most relevant here, that means
dir(instance) now contains '__doc__' (really an attribute of its class) but
didn't before (and dist starting synthesizing a non-existent "get"+"__doc__"
method name as a consequence).