> > Hello,
>
> > I've written a module which talk to a ldap server and create python
> > object from the record. Since now, I used to put this module in ~/py-
> > lib which was pointed by /usr/lib/python2.5/site-packages/tg-
> > install.pth.
>
> > But I'm facing some problem to upgrade this module, since this module
> > is used in many places (turbogears, scripts and so on).
>
> > So I thought that the best solution will be to make an egg of it.
> > Which I've done and put into ~/py-lib.
>
> > Now the question is, how can I tell my tg project to use this egg
> > (myegg_version0.7), since I'm thinking to have multiple version of it.
> > Where and how should I specify use: myegg version 0.7
Found !
you have to modify <project_name>/controllers.py and add:
import pkg_resources
pkg_resources.require("myegg>=0.7")

> virtualenv is the answer. Simply create a VE for your project, and install
> mercilessly all you need into that.
>
> I tend to use a VE for *everything* I do. It's the easiest way to get a clean
> environment without any dependency-troubles.
ooh, I didn't know about this. Looks very interesting. I'll have a
look.

> Diez
thanks

cEd
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to