On Tue, Jan 20, 2009 at 12:47 AM, Akira Kitada <[email protected]> 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: 1/ using distutils extension mechanism (see http://docs.python.org/distutils/extending.html#integrating-new-commands) 2/ using setuptools extension mechanism based on "entry points", see http://peak.telecommunity.com/DevCenter/setuptools#adding-commands for the latter you can take a look at collective.dist, that adds two new commands using entry points - http://pypi.python.org/pypi/collective.dist Regards Tarek > _______________________________________________ > Distutils-SIG maillist - [email protected] > 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/ _______________________________________________ Distutils-SIG maillist - [email protected] http://mail.python.org/mailman/listinfo/distutils-sig
