[Distutils] Where to put a original distutils command?

Tarek Ziadé ziade.tarek at gmail.com
Tue Jan 20 09:47:58 CET 2009

On Tue, Jan 20, 2009 at 12:47 AM, Akira Kitada <akitada at gmail.com> wrote:
> Hi,
> I was wondering where I'm supposed to put a new distutils command in.
> The command is a kind of bdist_rpm-like thing for my own package system,
> so it's just for local use so won't ever move in Python distribution.
> I thought site-packages, but just for one command, it would be a bit overkill.
> Any ideas?

You can create a new package that implements your command in two ways:

using distutils extension mechanism (see

using setuptools extension mechanism based on "entry points", see

for the latter you can take a look at collective.dist, that adds two
new commands using entry points -


> _______________________________________________
> 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/

More information about the Distutils-SIG mailing list