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 |
|
) |
| |
dictionary pip._vendor.pkg_resources.MarkerEvaluation.values |
|
static |
Initial value:
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,
The documentation for this class was generated from the following file:
Copyright 2014 Google Inc. All rights reserved.