| Summary: | python-2.4 distutils and swig-1.3.25 function error | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Chris White (RETIRED) <chriswhite> |
| Component: | [OLD] Core system | Assignee: | Python Gentoo Team <python> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | normal | ||
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
Meh, wrong version, meant 1.3.25 :/ 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. ah ok, i see bug #95559 is what you're describing. |
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...).