Excellent!!! that did the trick.<br><br><div class="gmail_quote">On Sat, Feb 21, 2009 at 5:37 PM, Tarek Ziadé <span dir="ltr"><<a href="mailto:ziade.tarek@gmail.com">ziade.tarek@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br>
<br>
You need to add your compiler into the ccompiler.compiler_class dict,<br>
then specify the compiler type in the metadata in setup.py, with the<br>
compiler option.<br>
<br>
Regards<br>
Tarek<br>
<div><div></div><div class="Wj3C7c"><br>
On Sat, Feb 21, 2009 at 11:06 PM, Simon Wood <<a href="mailto:sgwoodjr@gmail.com">sgwoodjr@gmail.com</a>> wrote:<br>
> Hi,<br>
><br>
> The API reference for distutils tells how to get an instance of a new<br>
> compiler sub-class with the following command:<br>
><br>
> mycompiler = distutils.ccompiler.new_compiler(plat=None, compiler=None,<br>
> verbose=0, dry_run=0, force=0)<br>
><br>
> The API also specifies the commands to modify specific parameters within the<br>
> returned compiler sub-class. However the API says nothing about how to<br>
> actually "use" the new sub-class. In other words, how does one go about<br>
> getting the following to work (or something similar)?<br>
><br>
> python setup.py build<br>
><br>
> where the build steps now use 'mycompiler'<br>
><br>
> Thanks,<br>
><br>
> -Simon<br>
><br>
</div></div>> _______________________________________________<br>
> Distutils-SIG maillist - <a href="mailto:Distutils-SIG@python.org">Distutils-SIG@python.org</a><br>
> <a href="http://mail.python.org/mailman/listinfo/distutils-sig" target="_blank">http://mail.python.org/mailman/listinfo/distutils-sig</a><br>
><br>
><br>
<font color="#888888"><br>
<br>
<br>
--<br>
Tarek Ziadé | Association AfPy | <a href="http://www.afpy.org" target="_blank">www.afpy.org</a><br>
Blog FR | <a href="http://programmation-python.org" target="_blank">http://programmation-python.org</a><br>
Blog EN | <a href="http://tarekziade.wordpress.com/" target="_blank">http://tarekziade.wordpress.com/</a><br>
</font></blockquote></div><br>