[Biopython-dev] setup.py bug

Marc Colosimo mcolosimo at mitre.org
Mon May 3 12:04:24 EDT 2004


There is a bug in setup.py. I don't know how people got it to work, but 
on my system I get this  (python 2.2.2, Linux):

  python setup.py build
Traceback (most recent call last):
   File "setup.py", line 392, in ?
     language="c++"
TypeError: __init__() got an unexpected keyword argument 'language'

Removing this from:


     Extension('Bio.KDTree._CKDTree',
               ["Bio/KDTree/KDTree.C",
                "Bio/KDTree/KDTree.swig.C"],
               libraries=["stdc++"]
               language=["c++"]
               ),

I get the second error at:

   File "setup.py", line 163, in build_extension
     if ext.language == "c++":
AttributeError: Extension instance has no attribute 'language'

If these files are c++, then they should be named correctly (many 
choices, none with C).

Marc





More information about the Biopython-dev mailing list