News for hackers. Stuff that matters.
Re:Tools of the Modern Python Hacker: Virtualenv, Fabric and... by snprbob86 on Thursday July 09, 2009 @04:11AM (#695452)
I took a brief look at virtualenv, but decided not to use it for some reason that currently escapes me. The solution that I came up with instead has been working out quite well so far...

My main package has a sub-package called "external". When I run manage.py, it immediately imports external. External's __init__.py adds a bunch of things to sys.path

Whenever I want to add a new package, I simply add the egg, or source, or whatever to the external folder, add an entry to the external/__init__.py and check it in. This process can even selectively load packages by platform with a simple if-statement. Now when I checkout a new enlistment from SVN, I immediately get the full set of dependencies at their exact versions.

Simple, but effective.

Thoughts?

There are no comments on this comment yet.