Reputation: 7257
I have been using virtualenv and virtual envwrapper for years while doing development. Until recently, I have been lucky and the systems / servers (*nix) I deployed too have had no other Python applications running so I have never had to worry about conflicting site-packages
.
Google searching didn't turn anything up for me, so I was hoping the community could help guide me towards a common approach to managing python dependencies on a deployed system / server.
Clarifications
Upvotes: 1
Views: 121
Reputation: 4129
Unless you have some other reason for not using virtualenv, it's production-ready and just as performant as your system python with system site packages. Virtualenv is basically just a copy of your python executable in its own directory tree. It works by invoking that separate executable instead of the system executable. As long as your process manager/init scripts point to the executable in your virtualenv, it should work fine.
Upvotes: 2