On Tue, 2009-05-12 at 15:51 -0700, Mike Orr wrote: > On Tue, May 12, 2009 at 3:45 PM, Iain Duncan <[email protected]> wrote: > > > > On Tue, 2009-05-12 at 18:40 +0200, Antonio Beamud Montero wrote: > >> > >> How do you name virtual environments? > >> And where do you store this enviroments? > >> Exists any recipe to manage several virtual envs and not die trying it? :) > >> > > > > I came up with a slightly odd configuration that I really like, but Ian > > said it should work fine. I make my build script turn the top level of a > > project checkout *into* the virtual env, following a project layout I > > cobbled together from combinations of "Foundations of Agile Python > > Development" and "Continuous Integration". > > > > So a full build checks out the whole project, including source for all > > third party dependencies, wipes the old virtual env, creates a fresh one > > in the current dir, installs the dependencies, and then builds and > > installs the project. Nothing needs to come from the net, the only local > > variable is the python install, and the build is 100% new and repeatable > > aside from the base python. > > But the virtualenv contains symlinks to the system Python libraries. > How can those be replicated in another location? Or does it assume > the system Python has all the same paths as when the virtualenv was > created?
I was probably not clear. The build script ( a bash script ) completely removes the virtual env on each build, so build, dist, lib, include are all wiped out. What gets preserved is the source layout and the locations of the third party source, which are pointed to in setup.cfg or the pip configuration file. Then the build script rebuilds the venv in the target directory on each build, reinstalling all dependencies, but as the source for those is *in* the repos, there is no risk of version mixups or off line problems. As long as the build script has permission to run virtual env on the target system, it works. Iain --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pylons-discuss" 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/pylons-discuss?hl=en -~----------~----~----~----~------~----~------~--~---
