Setuptools platform specific dependencies
Is there any way to tell setuptools or distribute to require a package on a specific platform? In my specific case, I'm using readline , which comes as part of the standard library on Unix systems, but on Windows I need the pyreadline module to replace that functionality (cf. this question ). If I just put it in the requirements It also installs on Unix systems where it's completely useless. setup.py is simply a python script. You can create dynamic dependencies in that script: import platform setup_requires = ['foo', 'bar'] if platform.system() == 'Windows': setup_requires.append('pyreadline'