Re: Python "make" like tools (was Re: [ANN] DoIt 0.1.0 Released (build tool))

2008-04-23 Thread Eduardo Schettino
On Wed, Apr 23, 2008 at 8:39 PM, Ville M. Vainio <[EMAIL PROTECTED]> wrote: > > Yeah, decorators get around this. > > > Perhaps you could do: > > for f in pyFiles: > @task("checker") > @depend(f) > def check(): > c("pychecker %s" % f) > > Never underestimate the magic that is nested s

Re: Python "make" like tools (was Re: [ANN] DoIt 0.1.0 Released (build tool))

2008-04-23 Thread Ville M. Vainio
Eduardo Schettino wrote: I find the doit syntax a bit cumbersome, especially as you can avoid 'args' by just returning a lamda in 'action'. My idea was to: do *not* add any new syntax (to avoid being cumbersome). It is just python, you dont have to import or subclass Yeah, decorators get

Re: Python "make" like tools (was Re: [ANN] DoIt 0.1.0 Released (build tool))

2008-04-21 Thread Eduardo Schettino
I guess I should post a link to the project in this thread... http://python-doit.sourceforge.net/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Python "make" like tools (was Re: [ANN] DoIt 0.1.0 Released (build tool))

2008-04-21 Thread Eduardo Schettino
> > I took a look at dolt syntax, and saw this: > > QQQ > > def create_folder(path): > """Create folder given by "path" if it doesnt exist""" > if not os.path.exists(path): > os.mkdir(path) > return True > > def task_create_build_folder(): > buildFolder = jsPath + "

Re: Python "make" like tools (was Re: [ANN] DoIt 0.1.0 Released (build tool))

2008-04-21 Thread Paul Boddie
On 21 Apr, 16:51, "Ville M. Vainio" <[EMAIL PROTECTED]> wrote: > > Wouldn't it be more convenient to provide syntax like this: > > @task("create_build_folder") > @depend("dep1 some_other_dep") > def buildf(): > buildFolder = jsPath + "build" > create_folder(buildFolder) I'd want to make the "g

Python "make" like tools (was Re: [ANN] DoIt 0.1.0 Released (build tool))

2008-04-21 Thread Ville M. Vainio
Eduardo Schettino wrote: > DoIt is a build tool that focus not only on making/building things but on > executing any kind of tasks in an efficient way. Designed to be easy to use > and "get out of your way". I took a look at dolt syntax, and saw this: QQQ def create_folder(path): """Create