'Evaluate a PEP 426 environment marker using markerlib.
Return a boolean indicating the marker result in this environment.
Raise SyntaxError if marker is invalid.'

@classmethod
def _markerlib_evaluate(cls, text):

    from pip._vendor import _markerlib
    env = cls._translate_metadata2(_markerlib.default_environment())
    try:
        result = _markerlib.interpret(text, env)
    except NameError as e:
        raise SyntaxError(e.args[0])
    return result
