Feature for eclib (the sage.libs.eclib.mwrank module)

class sage.features.eclib.Eclib(*args, **kwds)[source]

Bases: BuildModule

A sage.features.Feature describing the presence of sage.libs.eclib.mwrank.

EXAMPLES:

sage: from sage.features.eclib import Eclib
sage: Eclib().is_present()  # needs eclib
FeatureTestResult('eclib', True)
sage: Eclib().is_present()  # needs !eclib
FeatureTestResult('eclib', False)
>>> from sage.all import *
>>> from sage.features.eclib import Eclib
>>> Eclib().is_present()  # needs eclib
FeatureTestResult('eclib', True)
>>> Eclib().is_present()  # needs !eclib
FeatureTestResult('eclib', False)
from sage.features.eclib import Eclib
Eclib().is_present()  # needs eclib
Eclib().is_present()  # needs !eclib

A runtime check. We only check the “present” case because, if feature checks are _not_ deferred, the needs !eclib can be satisfied (disabled at build time) at the same time we are able to import a module that was installed for a previous build of sage:

sage: from sage.features.eclib import Eclib
sage: Eclib().is_present_at_runtime()  # needs eclib
FeatureTestResult('eclib', True)
>>> from sage.all import *
>>> from sage.features.eclib import Eclib
>>> Eclib().is_present_at_runtime()  # needs eclib
FeatureTestResult('eclib', True)
from sage.features.eclib import Eclib
Eclib().is_present_at_runtime()  # needs eclib
sage.features.eclib.all_features()[source]