[Distutils] virtualenv & pypi-server

PJ Eby pje at telecommunity.com
Thu Oct 27 19:17:15 CEST 2011


On Thu, Oct 27, 2011 at 11:58 AM, Andrea Crotti
<andrea.crotti.0 at gmail.com>wrote:
>
> Thanks, that's much better right :)
> So anyway I do have to work with plugins, specifically envisage plugins.
>
> Moreover, our applications are normally composed by more than one egg, and
> each of them has
> its own setup_requires requiring a set of the global eggs.
>

Er, do you mean install_requires?  setup_requires is for build-time plugins
only.


At the moment the run system is a bit complicated and uses
> pkg_resources.find_plugins...
>
> That said reading the API was still interesting, and for example I found
> the
>
> working_set.subscribe
>
> In theory I can register a callback function that when something is "found"
> does something,
> and I thought immediately that it might be possible to hot-swap some
> plugins at run-time,
> is that true doing some tricks with that, is that correct?
>
> def mycallback(dist):
>    if dist == 'name':
>           # reload(dist), if anything like this can be done at all
>

Properly reloading changed code is a lot more complex than that.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20111027/9bdf9fea/attachment.html>


More information about the Distutils-SIG mailing list