Re:Eighteen months of Django
by tacticus on Tuesday May 07, 2013 @09:35PM
(#5671966)
So a stupid question about virtualenv for you. Why does it default to full paths for everything?
[ Parent
| on HN ]
I actually don't "know" either. But I suspect it has to do with knowing which python to use (system generally) and if the user wants to use global packages as well.
checkout virtualenvwrapper (http://virtualenvwrapper.readthedocs.org/en/latest/install.h...) as well for handling virtualenvs.
Re:Eighteen months of Django
by obviouslygreen on Tuesday May 07, 2013 @11:56PM
(#5672404)
+1, I definitely should have mentioned this. virtualenvwrapper makes it vastly more convenient.
Author here - thanks for mentioning this! I've never used it but will give it a go.
Re:Eighteen months of Django
by obviouslygreen on Tuesday May 07, 2013 @09:54PM
(#5672046)
Honestly, I have no idea. I haven't ever tried to move a virtualenv, and it's not something that's supposed to be part of your repo (you should build your env separately on every box; it's intended to encapsulate dependencies from the system, not to transfer them around with your code).
If your system gets updated/upgraded to the point where your virtualenv breaks, rebuild it from scratch; all it should take is a bit of time.
[edit: I am not a developer involved with virtualenv, and the statement about what it's intended for probably shouldn't be quite so strong, as this is only my impression of it and the way I use it.]