It seems the requirement specifier must be `sys_platform` and not `sys.platform`. Tested with pip 8.0.0.
This commit is contained in:
Emil Styrke 2016-01-21 09:44:50 +01:00
parent df7bb2d18f
commit a2cea0eb7d
1 changed files with 1 additions and 1 deletions

View File

@ -235,7 +235,7 @@ Since version 6.0, pip also supports specifers containing `environment markers
::
SomeProject ==5.4 ; python_version < '2.7'
SomeProject; sys.platform == 'win32'
SomeProject; sys_platform == 'win32'
Environment markers are supported in the command line and in requirements files.