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">&lt;<a href="mailto:ziade.tarek@gmail.com">ziade.tarek@gmail.com</a>&gt;</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 &lt;<a href="mailto:sgwoodjr@gmail.com">sgwoodjr@gmail.com</a>&gt; wrote:<br>
&gt; Hi,<br>
&gt;<br>
&gt; The API reference for distutils tells how to get an instance of a new<br>
&gt; compiler sub-class with the following command:<br>
&gt;<br>
&gt; mycompiler = distutils.ccompiler.new_compiler(plat=None, compiler=None,<br>
&gt; verbose=0, dry_run=0, force=0)<br>
&gt;<br>
&gt; The API also specifies the commands to modify specific parameters within the<br>
&gt; returned compiler sub-class. However the API says nothing about how to<br>
&gt; actually &quot;use&quot; the new sub-class. In other words, how does one go about<br>
&gt; getting the following to work (or something similar)?<br>
&gt;<br>
&gt; python setup.py build<br>
&gt;<br>
&gt; where the build steps now use &#39;mycompiler&#39;<br>
&gt;<br>
&gt; Thanks,<br>
&gt;<br>
&gt; -Simon<br>
&gt;<br>
</div></div>&gt; _______________________________________________<br>
&gt; Distutils-SIG maillist &nbsp;- &nbsp;<a href="mailto:Distutils-SIG@python.org">Distutils-SIG@python.org</a><br>
&gt; <a href="http://mail.python.org/mailman/listinfo/distutils-sig" target="_blank">http://mail.python.org/mailman/listinfo/distutils-sig</a><br>
&gt;<br>
&gt;<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>