import platform
setup_requires = ['foo', 'bar']
if platform.system() == 'Windows':
    setup_requires.append('pyreadline')
setup(setup_requires=setup_requires)
Setuptools platform specific dependencies