On Thu, 2013-04-25 at 11:44 -0400, Ben Rousch wrote:
> At the last meeting a few of you mentioned that you're not using
> virtualenvs.
WHAT??!?!??!
> Shame on you!
I'll admit I resisted using virtualenv for awhile; I generally dislike
language specific deployment hacks [and, yes, virtualenv is a HACK, a
hack around the steaming-mega-hack that is Python's tragically lame,
sad, and pathetic excuse for packaging].
But it works extremely well, stays out of the way, and doesn't really
add much complexity. It works so well in fact that I can go a week or
more without cursing at Python for its silly bailing-twine and duct-tape
based packaging and module scheme. Eggs are so easily broken - it is a
good choice for the name of python packages.
Get virtualenv
Make a directory
Run virtualenv {directory}
Go into the directory
Run . bin/activate
Start writing code, installing dependencies, etc...
You just have to remember to ". bin/activate" and that the session you
do that in is ruined for any other purpose.
But use Make files to automate packaging, testing, etc... Then you can
use a normal and proper tool to hide the HACK and mostly forget all
about it.
--
Adam Tauno Williams <mailto:
awil...@whitemice.org> GPG D95ED383
Systems Administrator, Python Developer, LPI / NCLA