setup(name='test', version='0.1', setup_requires=['numpy'],
    install_requires=['scipy'])

def run(self):
    __builtins__.__NUMPY_SETUP__ = False
import numpy
In setup.py or pip requirements file, how to control order of installing package dependencies?