[Distutils] installing .py plugins to an alternate directory
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 () and also this one .
Note that Trac do something similar on it's own if i could remember well.
 - http://pypi.python.org/pypi/zope.configuration
 - http://www.muthukadan.net/docs/zca.html
> Distutils-SIG maillist - Distutils-SIG at python.org
GPG Key FingerPrint: 0x1A1194B7681112AF
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 262 bytes
Desc: OpenPGP digital signature
More information about the Distutils-SIG