Commit 94416707 authored by Andy Freeland's avatar Andy Freeland

Add support for python_platform_implementation environment marker

This patch adds support for the 'python_platform_implementation'
environment marker as defined by PEP-0426:
https://www.python.org/dev/peps/pep-0426/#environment-markers
parent 9aec33a0
......@@ -1403,6 +1403,7 @@ class MarkerEvaluation(object):
'python_version': lambda: platform.python_version()[:3],
'platform_version': platform.version,
'platform_machine': platform.machine,
'platform_python_implementation': platform.python_implementation,
'python_implementation': platform.python_implementation,
}
......
......@@ -420,3 +420,6 @@ Environment Markers
>>> em("python_version > '2.5'")
True
>>> im("platform_python_implementation=='CPython'")
False
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment