<div dir="ltr"><br><br><div class="gmail_quote">On Tue, Aug 12, 2008 at 5:38 PM, chris <span dir="ltr">&lt;<a href="mailto:cdcasey@gmail.com">cdcasey@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;">
<div><div></div><div class="Wj3C7c">&gt;&gt;<br>
&gt;&gt; Specifically, I want to be able to add a configuration and build some<br>
&gt;&gt; classes only if one of these commands is specified.<br>
&gt;<br>
&gt; what are you trying to do precisely ?<br>
&gt;&gt;<br>
In a setup.py, there&#39;s a method that builds some classes and puts them<br>
in a zip file. Then there&#39;s a line<br>
<br>
config.add_data_files(this_method)<br>
<br>
The method doesn&#39;t need to be called when only a source distribution<br>
is being created. I was hoping there might be a way to switch this<br>
config line off if there&#39;s no need for it, or maybe only switch it on<br>
when it is needed (something beyond using sys.argv).</div></div></blockquote><div><br>So you create a specific zip file on the fly, with some things in it, that is added in your source tree ?<br><br>Maybe you could create a specific source distribution command, that runs your code then call sdist<br>
<br>Tarek<br><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div class="Wj3C7c"><br>
</div></div><div><div></div><div class="Wj3C7c">_______________________________________________<br>
Distutils-SIG maillist &nbsp;- &nbsp;<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>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Tarek Ziadé | Association AfPy | <a href="http://www.afpy.org">www.afpy.org</a><br>Blog FR | <a href="http://programmation-python.org">http://programmation-python.org</a><br>
Blog EN | <a href="http://tarekziade.wordpress.com/">http://tarekziade.wordpress.com/</a><br>
</div>