[Python-Dev] Distutils2 scripts

Georg Brandl g.brandl at gmx.net
Fri Oct 8 12:24:07 CEST 2010

Am 08.10.2010 09:05, schrieb Tarek Ziadé:
> Hello,
> In the Distutils2 project, we'll have quite a few scripts that can be
> called via -m
> $ python -m distutils2.depgraph : shows a dependency graph
> $ python -m distutils2.install : installs a project
> $ python -m distutils2.run command : runs a distutils2 command
> etc..

What happened to "python setup.py action"?  Or is this a step towards
not requiring setup.py at all?

> The feedback I received for this is pretty clear: people want a single
> script that can be called directly. e.g.
> $ distutils2 depgraph
> $ distutils2 install
> $ distutils2 run command
> Fair enough, I can add that script in the project and get it installed
> when people install the project.
> I just wanted to make sure that once distutils2 is back in the stdlib,
> it's OK for us to add that script in the distribution.
> I remember that people did not want "yet another script" in there, so
> I just wanted to double-check before I take this path

This is certainly preferable to memorizing the modules you can call with
-m, because it's easier to provide help functions.


Thus spake the Lord: Thou shalt indent with four spaces. No more, no less.
Four shall be the number of spaces thou shalt indent, and the number of thy
indenting shall be four. Eight shalt thou not indent, nor either indent thou
two, excepting that thou then proceed to four. Tabs are right out.

More information about the Python-Dev mailing list