Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

What is the best practices for management large installs of virtualenv. How to do mass update of the packages?

share|improve this question
add comment

1 Answer

On our setup we use a PIP requirements file to specify which packages are required in a virtualenv- when doing this you can also specify which versions of the packages are allowed. Installing everything is a matter of:

pip -r requirements.txt

Then, to upgrade any of the packages we can change the version numbers in the requirements file and run:

pip --upgrade -r requirements.txt

This should also work if you aren't using version specifiers, in which case it should automatically upgrade to the latest versions on pypi.

share|improve this answer
    
Yes. This is useful when you have a bit environments. What about hundreds of them? How to update them all? –  Biriukov Nov 8 '11 at 10:06
    
The wording of the question implied lots of packages in a single virualenv. For hundreds of different virtualenvs you could write a script. BUT, I would take a moment to consider what the implications of this might be. One of the main reasons for virtualenvs is to keep things stable so you don't don't break all your sites at the same time. A mass automated update of many virtualenvs seems to defeat the point somewhat. –  SystemParadox Nov 9 '11 at 0:49
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.