I'm working with fabric(0.9.4)+pip(0.8.2) and I need to install some python modules for multiple servers. All servers have old version of setuptools (0.6c8) which needs to be upgraded for pymongo module. Pymongo requires setuptools>=0.6c9.

My problem is that pip starts installation with pymongo instead of setuptools which causes pip to stop. Shuffling module order in requirements file doesn't seem to help.

requirements.txt:

setuptools>=0.6c9
pymongo==1.9
simplejson==2.1.3

Is there a way to specify install order for pip as it doesn't seem to do it properly by itself?

This can be resolved with two separate requirements files but it would be nice if I didn't need to maintain multiple requirements files now or in the future.

As far as i know there is no way to set an order in the requirement file of pip.
–
mouadMar 22 '11 at 16:17

If you look into the code of pip.py there is a class call RequirementSet where it save the requirement, and this class use a dictionary to save the requirements , i think this is way you can't set an order , but i will love to know if i'm wrong :)
–
mouadMar 22 '11 at 16:27