This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ikelos
Recipients ikelos
Date 2008-09-14.01:25:09
SpamBayes Score 7.402523e-12
Marked as misclassified No
Message-id <1221355512.51.0.884487193093.issue3861@psf.upfronthosting.co.za>
In-reply-to
Content
I'm testing out Python-2.6b3 and attempted to build wxpython-2.8.8.1. 
It creates a subclassed CCompiler (MyUnixCCompiler), which overrides the
_compile function, with the following signature:

_compile(self, obj, src, ext, cc_args, extra_postargs, pp_opts)

This is the same function signature found in distutils/ccompiler.py
(line 705).  However, it gets called further up in
distutils/ccompiler.py (at line 699) with a lang keyword argument. 
Since **kwargs or similar isn't included in the signature, it raises an
exception.

The best solution seems like removing the lang=lang keyword argument on
line 669, but it's not clear why this was added or what consumers use
this new addition.  Changing the signature would be an interface break
and require old code to be updated, but might allow for a **kwargs entry
that would allow for future additions.

Please let me know if you need any further information...  5:)
History
Date User Action Args
2008-09-14 01:25:12ikelossetrecipients: + ikelos
2008-09-14 01:25:12ikelossetmessageid: <1221355512.51.0.884487193093.issue3861@psf.upfronthosting.co.za>
2008-09-14 01:25:11ikeloslinkissue3861 messages
2008-09-14 01:25:09ikeloscreate