[Distutils] installing .py plugins to an alternate directory

kiorky kiorky at cryptelium.net
Sat Dec 5 11:06:02 CET 2009

Andrew Dalke a écrit :
> On Dec 4, 2009, at 9:18 AM, kiorky wrote:
>> ZopeComponentArchitecture/Entry points with an assembler like buildout for the
>> later won't pollute site-packages
> I tried searching for "ZopeComponentArchitecture/Entry points" but found nothing that seemed relevant. Did you mean "setuptools entry_points"?
I mean two approaches:

	- setuptools entry points, if you need just simple entry points registered when
your plugins are in the sys.path of your package. So when you have generated
scripts with buildout, or when you have done some easy_install or python
setup.py install dance.

	- Zope Component Architecture, if you need something more complicated.

The later can be tedious at first if you are not yet familiar with zope as you
ll surely have to initiate a 'site' yourself and do other stuff around if you
are not in a zope environment, but that is just a matter of some readings and hacks.

Starters are the zope.interface, zope.configuration, and zope.component pypi
pages ([1]) and also this one [2].

Note that Trac do something similar on it's own if i could remember well.

[1] - http://pypi.python.org/pypi/zope.configuration
[2] - http://www.muthukadan.net/docs/zca.html

> _______________________________________________
> Distutils-SIG maillist  -  Distutils-SIG at python.org
> http://mail.python.org/mailman/listinfo/distutils-sig

GPG Key FingerPrint: 0x1A1194B7681112AF

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 262 bytes
Desc: OpenPGP digital signature
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20091205/df3e0635/attachment-0001.pgp>

More information about the Distutils-SIG mailing list