Re: [Distutils] Making commands extensible by default

2009-04-20 Thread Toshio Kuratomi
David Cournapeau wrote: > Toshio Kuratomi wrote: >> They don't have bearing on talking about >> redesigning how to design a new architecture that's easy to extend. >> > > Those examples show why extending distutils commands with subclassing + > post processing is not always enough. I don't unde

Re: [Distutils] Making commands extensible by default

2009-04-19 Thread Tarek Ziadé
Here's a draft for an extensible command based on plugin; http://wiki.python.org/moin/Distutils/ManifestPluginSystem/Draft Let me know how it fits your use cases. Regards Tarek -- Tarek Ziadé | http://ziade.org ___ Distutils-SIG maillist - Distutil

Re: [Distutils] Making commands extensible by default

2009-04-17 Thread Tarek Ziadé
On Fri, Apr 17, 2009 at 1:54 PM, cdavid wrote: > > A related problem, but maybe outside the scope of your proposal is dealing > with communication between commands. I think the only way to do it at the > moment is to attach those data to the Distribution instance - that's very > fragile (if only b

Re: [Distutils] Making commands extensible by default

2009-04-17 Thread cdavid
Hi Tarek, Tarek Ziadé wrote: > > > == work in progress, == > > What we want to do here is being able to define subsets in run(), > sharing the same options environment. > > so basically, a rough, generic run() method could be: > > def run(): >for func in some_funcs: > func(self, o

Re: [Distutils] Making commands extensible by default

2009-04-17 Thread David Cournapeau
Toshio Kuratomi wrote: > They don't have bearing on talking about > redesigning how to design a new architecture that's easy to extend. > Those examples show why extending distutils commands with subclassing + post processing is not always enough. I don't understand why they would not be releva

Re: [Distutils] Making commands extensible by default

2009-04-17 Thread Toshio Kuratomi
David Cournapeau wrote: > Toshio Kuratomi wrote: >> Tarek Ziadé wrote: >> >>> Hello, >>> >>> This is a side discussion but quiet important ihmo. >>> >>> == Problem == >>> >>> Some people complained about the fact that is was hard to extend >>> Distutils commands. >>> You end up rewriting the who

Re: [Distutils] Making commands extensible by default

2009-04-16 Thread David Cournapeau
Toshio Kuratomi wrote: > Tarek Ziadé wrote: > >> Hello, >> >> This is a side discussion but quiet important ihmo. >> >> == Problem == >> >> Some people complained about the fact that is was hard to extend >> Distutils commands. >> You end up rewriting the whole command most of the time. >> >> So

Re: [Distutils] Making commands extensible by default

2009-04-16 Thread Toshio Kuratomi
Tarek Ziadé wrote: > Hello, > > This is a side discussion but quiet important ihmo. > > == Problem == > > Some people complained about the fact that is was hard to extend > Distutils commands. > You end up rewriting the whole command most of the time. > > So what's a command ? It's a class that

[Distutils] Making commands extensible by default

2009-04-09 Thread Tarek Ziadé
Hello, This is a side discussion but quiet important ihmo. == Problem == Some people complained about the fact that is was hard to extend Distutils commands. You end up rewriting the whole command most of the time. So what's a command ? It's a class that is used by the distribution instance whe