Skip to content
Permalink
Browse files

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
  • Loading branch information...
rouge8 committed Sep 10, 2015
1 parent 9aec33a commit 94416707fd59a65f4a8f7f70541d6b3fc018b626
Showing with 4 additions and 0 deletions.
  1. +1 −0 pkg_resources/__init__.py
  2. +3 −0 pkg_resources/api_tests.txt
@@ -1403,6 +1403,7 @@ class MarkerEvaluation(object):
'python_version': lambda: platform.python_version()[:3], 'python_version': lambda: platform.python_version()[:3],
'platform_version': platform.version, 'platform_version': platform.version,
'platform_machine': platform.machine, 'platform_machine': platform.machine,
'platform_python_implementation': platform.python_implementation,
'python_implementation': platform.python_implementation, 'python_implementation': platform.python_implementation,
} }


@@ -420,3 +420,6 @@ Environment Markers


>>> em("python_version > '2.5'") >>> em("python_version > '2.5'")
True True

>>> im("platform_python_implementation=='CPython'")
False

0 comments on commit 9441670

Please sign in to comment.
You can’t perform that action at this time.