[Distutils] specify available build commands

Tarek Ziadé ziade.tarek at gmail.com
Tue Aug 12 17:55:38 CEST 2008

On Tue, Aug 12, 2008 at 5:38 PM, chris <cdcasey at gmail.com> wrote:

> >>
> >> Specifically, I want to be able to add a configuration and build some
> >> classes only if one of these commands is specified.
> >
> > what are you trying to do precisely ?
> >>
> In a setup.py, there's a method that builds some classes and puts them
> in a zip file. Then there's a line
> config.add_data_files(this_method)
> The method doesn't need to be called when only a source distribution
> is being created. I was hoping there might be a way to switch this
> config line off if there's no need for it, or maybe only switch it on
> when it is needed (something beyond using sys.argv).

So you create a specific zip file on the fly, with some things in it, that
is added in your source tree ?

Maybe you could create a specific source distribution command, that runs
your code then call sdist


> _______________________________________________
> Distutils-SIG maillist  -  Distutils-SIG at python.org
> http://mail.python.org/mailman/listinfo/distutils-sig

Tarek Ziadé | Association AfPy | www.afpy.org
Blog FR | http://programmation-python.org
Blog EN | http://tarekziade.wordpress.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20080812/09d079e1/attachment.htm>

More information about the Distutils-SIG mailing list