On 10/27/2011 04:16 PM, Andrea Crotti wrote:
Answering to myself, I was using the wrong functions for pkg_resources, and
in theory I should use find_distributions.
So I tried the following
- construct a very minimal egg with a foolproof module
- find and add to the working_set all the distributions found

for d in find_distributions('egg_directory'):
    working_set.add(d)

from foolproof import fool

Again answering to myself with this it appears to work,
but on the pkg_resources doc
for d in find_distributions('egg_directory'):
    working_set.add(d)
    d.activate()

or an alternative is to require specifically what I want.
Now I need to try from another egg using this egg and see how setup.py
tricks work in this sense.
_______________________________________________
Distutils-SIG maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/distutils-sig

Reply via email to