Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 117381

Summary: python-2.4 distutils and swig-1.3.25 function error
Product: Gentoo Linux Reporter: Chris White (RETIRED) <chriswhite>
Component: [OLD] Core systemAssignee: Python Gentoo Team <python>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Chris White (RETIRED) gentoo-dev 2006-01-01 12:49:31 UTC
I'm trying to stabalize swig-1.25, but unfortunately the latest stable python can't handle it correctly, as shown here:

  File "/usr/lib/python2.4/distutils/core.py", line 149, in setup
    dist.run_commands()
  File "/usr/lib/python2.4/distutils/dist.py", line 946, in run_commands
    self.run_command(cmd)
  File "/usr/lib/python2.4/distutils/dist.py", line 966, in run_command
    cmd_obj.run()
  File "/usr/lib/python2.4/distutils/command/build.py", line 112, in run
    self.run_command(cmd_name)
  File "/usr/lib/python2.4/distutils/cmd.py", line 333, in run_command
    self.distribution.run_command(command)
  File "/usr/lib/python2.4/distutils/dist.py", line 966, in run_command
    cmd_obj.run()
  File "/usr/lib/python2.4/distutils/command/build_ext.py", line 279, in run
    self.build_extensions()
  File "/usr/lib/python2.4/distutils/command/build_ext.py", line 405, in build_extensions
    self.build_extension(ext)
  File "/usr/lib/python2.4/distutils/command/build_ext.py", line 442, in build_extension
    sources = self.swig_sources(sources, ext)
TypeError: swig_sources() takes exactly 2 arguments (3 given)

The recommended patches I've seen are here:

http://news.hping.org/comp.lang.python.archive/19992.html
http://mail.python.org/pipermail/distutils-sig/2004-March/003771.html

But until that gets fixed, swig is gonna break pretty much anything that uses distutils (which is a lot of packages...).
Comment 1 Chris White (RETIRED) gentoo-dev 2006-01-01 12:53:09 UTC
Meh, wrong version, meant 1.3.25 :/
Comment 2 Alastair Tse (RETIRED) gentoo-dev 2006-02-06 14:06:39 UTC
how do i reproduce this? emerging pylibpcap seems to work? and i have swig-1.3.25 and python-2.4.2 on the same box and its working ok. i suppose i need to find something that uses distutils and swig, but pylibpcap seems to also emerge fine on this box.
Comment 3 Alastair Tse (RETIRED) gentoo-dev 2006-02-06 14:08:38 UTC
ah ok, i see bug #95559 is what you're describing.
Comment 4 Chris White (RETIRED) gentoo-dev 2006-02-08 09:36:12 UTC
I talked with some of the other devs, and basically the latest unstable needs to be stabilized for it to even compile.  And yah, that's the same thing I got on the other bug..

*** This bug has been marked as a duplicate of 95559 ***