Feature for testing the presence of meataxe¶
- class sage.features.meataxe.Meataxe(*args, **kwds)[source]¶
Bases:
BuildModuleA
Featuredescribing the presence of the Sage modules that depend on the meataxe library.EXAMPLES:
sage: from sage.features.meataxe import Meataxe sage: Meataxe().is_present() # needs meataxe FeatureTestResult('meataxe', True) sage: Meataxe().is_present() # needs !meataxe FeatureTestResult('meataxe', False)
>>> from sage.all import * >>> from sage.features.meataxe import Meataxe >>> Meataxe().is_present() # needs meataxe FeatureTestResult('meataxe', True) >>> Meataxe().is_present() # needs !meataxe FeatureTestResult('meataxe', False)
from sage.features.meataxe import Meataxe Meataxe().is_present() # needs meataxe Meataxe().is_present() # needs !meataxe
A runtime check. We only check the “present” case because, if feature checks are _not_ deferred, the
needs !meataxecan 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.meataxe import Meataxe sage: Meataxe().is_present_at_runtime() # needs meataxe FeatureTestResult('meataxe', True)
>>> from sage.all import * >>> from sage.features.meataxe import Meataxe >>> Meataxe().is_present_at_runtime() # needs meataxe FeatureTestResult('meataxe', True)
from sage.features.meataxe import Meataxe Meataxe().is_present_at_runtime() # needs meataxe