Platform independence in item requirements files

How can I get specific things in the requirements file? Some Windows packages are required instead of their Linux mappings.

WinPExpect vs pexpect pywin32 is not required for Linux, but winpexpect is required

Any idea on how you could handle this?

I thought of a small python script that would detect the platform and deal with it by running pip with various files of a specific platform, as well as with the "main" requirements file. Seems like maybe this should be easier.

+5
source share
2 answers

pip requirements do not allow this.

About this feature in distutils2 . See PEP 345 for more information on metadata .

distutils2 : http://packages.python.org/Distutils2/library/distutils2.metadata.html

PEP 345 .

+1

stackoverflow [python] requirements different platforms, answer ; distutils2 .

0

All Articles