Platform independence in pip requirement files

Viewed 515

How can I get platform specific things into a requirements file? Some windows packages are needed instead of their linux counterparts.

WinPExpect vs pexpect pywin32 isn't needed on linux but is needed by winpexpect

Any idea of how you could deal with that?

I've thought about a small python script that would detect the platform and deal with it by running pip with different platform specific files as well as the "main" requirements file. Seems like maybe it should be simpler.

2 Answers
Related