With the latest version (2017) of the pypa trio (pip,setuptools, wheel) you can now use conditional requirements directly. Here is an example with extra_requires that install various versions of lxml on different OSes:
extras_require={
':platform_system == "Windows"': ['lxml == 3.6.0'],
':platform_system == "Linux"': ['lxml == 3.6.4'],
':platform_system == "Darwin"': ['lxml == 3.6.4'],
},
You can do a lot more than this of course with even more complex expressions.