def 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 pkg_resources.MarkerEvaluation._safe_string |
( |
|
cand | ) |
|
|
staticprivate |
def pkg_resources.MarkerEvaluation.and_test |
( |
|
cls, |
|
|
|
nodelist |
|
) |
| |
def pkg_resources.MarkerEvaluation.atom |
( |
|
cls, |
|
|
|
nodelist |
|
) |
| |
def pkg_resources.MarkerEvaluation.comparison |
( |
|
cls, |
|
|
|
nodelist |
|
) |
| |
def pkg_resources.MarkerEvaluation.evaluate |
( |
|
cls, |
|
|
|
nodelist |
|
) |
| |
def 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 pkg_resources.MarkerEvaluation.get_op |
( |
|
cls, |
|
|
|
op |
|
) |
| |
def pkg_resources.MarkerEvaluation.interpret |
( |
|
cls, |
|
|
|
nodelist |
|
) |
| |
def 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 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 pkg_resources.MarkerEvaluation.test |
( |
|
cls, |
|
|
|
nodelist |
|
) |
| |
dictionary pkg_resources.MarkerEvaluation.values |
|
static |
Initial value:
2 'os_name':
lambda: os.name,
3 'sys_platform':
lambda: sys.platform,
4 'python_full_version': platform.python_version,
5 'python_version':
lambda: platform.python_version()[:3],
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.