[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:
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 - 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