We have to use a mix of pypi and conda since quite a few of our dependencies are not in conda. We have a script which checks conda first, then falls back to pypi, all from one requirements.txt
Instead of requirements.txt we use py.prereqs, but otherwise this script should get you close.
Incidentally is the buildscript of anaconda itself opensource? Couldn't find it anywhere.