Orbits  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Pages
Public Member Functions | Static Public Member Functions | Static Public Attributes | Private Member Functions | List of all members
pip._vendor.pkg_resources.MarkerEvaluation Class Reference
Inheritance diagram for pip._vendor.pkg_resources.MarkerEvaluation:
_object

Public Member Functions

def is_invalid_marker
 
def and_test
 
def test
 
def atom
 
def comparison
 
def get_op
 
def evaluate_marker
 
def interpret
 
def evaluate
 

Static Public Member Functions

def normalize_exception
 

Static Public Attributes

dictionary values
 
 evaluate_marker = _markerlib_evaluate
 

Private Member Functions

def _markerlib_evaluate
 

Member Function Documentation

def pip._vendor.pkg_resources.MarkerEvaluation._markerlib_evaluate (   cls,
  text 
)
private
Evaluate a PEP 426 environment marker using markerlib.
Return a boolean indicating the marker result in this environment.
Raise SyntaxError if marker is invalid.
def pip._vendor.pkg_resources.MarkerEvaluation.and_test (   cls,
  nodelist 
)
def pip._vendor.pkg_resources.MarkerEvaluation.atom (   cls,
  nodelist 
)
def pip._vendor.pkg_resources.MarkerEvaluation.comparison (   cls,
  nodelist 
)
def pip._vendor.pkg_resources.MarkerEvaluation.evaluate (   cls,
  nodelist 
)
def pip._vendor.pkg_resources.MarkerEvaluation.evaluate_marker (   cls,
  text,
  extra = None 
)
Evaluate a PEP 426 environment marker on CPython 2.4+.
Return a boolean indicating the marker result in this environment.
Raise SyntaxError if marker is invalid.

This implementation uses the 'parser' module, which is not implemented on
Jython and has been superseded by the 'ast' module in Python 2.6 and
later.
def pip._vendor.pkg_resources.MarkerEvaluation.get_op (   cls,
  op 
)
def pip._vendor.pkg_resources.MarkerEvaluation.interpret (   cls,
  nodelist 
)
def pip._vendor.pkg_resources.MarkerEvaluation.is_invalid_marker (   cls,
  text 
)
Validate text as a PEP 426 environment marker; return an exception
if invalid or False otherwise.
def pip._vendor.pkg_resources.MarkerEvaluation.normalize_exception (   exc)
static
Given a SyntaxError from a marker evaluation, normalize the error message:
 - Remove indications of filename and line number.
 - Replace platform-specific error messages with standard error messages.
def pip._vendor.pkg_resources.MarkerEvaluation.test (   cls,
  nodelist 
)

Member Data Documentation

pip._vendor.pkg_resources.MarkerEvaluation.evaluate_marker = _markerlib_evaluate
static
dictionary pip._vendor.pkg_resources.MarkerEvaluation.values
static
Initial value:
1 = {
2  'os_name': lambda: os.name,
3  'sys_platform': lambda: sys.platform,
4  'python_full_version': lambda: sys.version.split()[0],
5  'python_version': lambda:'%s.%s' % (sys.version_info[0], sys.version_info[1]),
6  'platform_version': platform.version,
7  'platform_machine': platform.machine,
8  'python_implementation': platform.python_implementation,
9  }

The documentation for this class was generated from the following file:

Copyright 2014 Google Inc. All rights reserved.