[spambayes-dev] Re: spambayes setup.py,1.30,1.31

Barry Warsaw barry at python.org
Sun Dec 5 04:55:34 CET 2004

Tony Meyer wrote:
> Update of /cvsroot/spambayes/spambayes
> In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29241
> Modified Files:
> 	setup.py 
> Log Message:
> Update PyPI details and an error message.
> For convenience, when doing an sdist, get the script to print out an MD5 checksum
>  and the size of the created archive(s) for us.  If only I could figure a way to get
>  Inno to do this, too ;)
> Index: setup.py
> ===================================================================
> RCS file: /cvsroot/spambayes/spambayes/setup.py,v
> retrieving revision 1.30
> retrieving revision 1.31
> diff -C2 -d -r1.30 -r1.31

This revision broke "python setup.py install" -- checked with both 
Python 2.3 and 2.4:

% python setup.py install
running install
running build
running build_py
running build_scripts
running install_lib
running install_scripts
Traceback (most recent call last):
   File "setup.py", line 131, in ?
     classifiers = [
   File "/usr/local/lib/python2.4/distutils/core.py", line 149, in setup
   File "/usr/local/lib/python2.4/distutils/dist.py", line 946, in 
   File "/usr/local/lib/python2.4/distutils/dist.py", line 966, in 
   File "/usr/local/lib/python2.4/distutils/command/install.py", line 
505, in run    self.run_command(cmd_name)
   File "/usr/local/lib/python2.4/distutils/cmd.py", line 333, in 
   File "/usr/local/lib/python2.4/distutils/dist.py", line 966, in 
   File "setup.py", line 74, in run
     return parent.run(self)
TypeError: unbound method run() must be called with sdist instance as 
first argument (got install_scripts instance instead)

Reverting to setup.py 1.30 fixes the problem.

More information about the spambayes-dev mailing list