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

Bug 243796

Summary: dev-python/wxpython-2.8.9.1-r1 fails to compile with python 2.6
Product: Gentoo Linux Reporter: Andrey <andrey.prok>
Component: [OLD] LibraryAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: major CC: pqGungnir
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Andrey 2008-10-24 08:15:14 UTC
Problem in compilation 
Traceback (most recent call last):                                                                                
  File "setup.py", line 1032, in <module>                                                                         
    **other_kw                                                                                                    
  File "/usr/lib64/python2.6/distutils/core.py", line 152, in setup                                               
    dist.run_commands()                                                                                           
  File "/usr/lib64/python2.6/distutils/dist.py", line 975, in run_commands                                        
    self.run_command(cmd)                                                                                         
  File "/usr/lib64/python2.6/distutils/dist.py", line 995, in run_command                                         
    cmd_obj.run()                                                                                                 
  File "/usr/lib64/python2.6/distutils/command/build.py", line 134, in run                                        
    self.run_command(cmd_name)                                                                                    
  File "/usr/lib64/python2.6/distutils/cmd.py", line 333, in run_command                                          
    self.distribution.run_command(command)                                                                        
  File "/usr/lib64/python2.6/distutils/dist.py", line 995, in run_command                                         
    cmd_obj.run()                                                                                                 
  File "/usr/lib64/python2.6/distutils/command/build_ext.py", line 343, in run                                    
    self.build_extensions()                                                                                       
  File "/usr/lib64/python2.6/distutils/command/build_ext.py", line 469, in build_extensions                       
    self.build_extension(ext)                                                                                     
  File "/usr/lib64/python2.6/distutils/command/build_ext.py", line 534, in build_extension                        
    depends=ext.depends)                                                                                          
  File "/usr/lib64/python2.6/distutils/ccompiler.py", line 700, in compile                                        
    lang=lang)                                                                                                    
TypeError: _compile() got an unexpected keyword argument 'lang'   
     
Problem is solved by removing last argument in /usr/lib64/python2.6/distutils/ccompiler.py:

--- ccompiler.py.old    2008-10-24 03:14:24.000000000 -0500
+++ ccompiler.py        2008-10-24 03:14:31.000000000 -0500
@@ -696,8 +696,7 @@
                 src, ext = build[obj]
             except KeyError:
                 continue
-            self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts,
-                   lang=lang)
+            self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
 
         # Return *all* object filenames, not just the ones we just built.
         return objects


Reproducible: Always
Comment 1 Matthias Liebig 2008-10-24 09:21:22 UTC
This is a duplicate of bug #219238.
Comment 2 Wormo (RETIRED) gentoo-dev 2008-10-25 07:25:19 UTC
Andrey, thanks for reporting your solution. This is the same problem as bug #219238 as pointed out by Matthias, so any further discussion should take place over there.

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